Initializes the instance.
Extracts an XMP document from a data stream.
The current algorithm ignores specific features and requirements of file formats. It simply looks for the first occurrences of $tokenStart and $tokenEnd and returns the content in between. This is a flexible approach but it is not a correct one. There are cases in which the algorithm won't succeed. Both false positives and false negatives are possible.
getXmpDocument(resource $stream) : \Kaloa\Xmp\Document
Returns a Kaloa\Xmp\Document of the first occurrence of XMP data in the stream.
A stream resource