\Kaloa\XmpReader

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.

Summary

Methods
Properties
Constants
__construct()
getXmpDocument()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct() 

Initializes the instance.

getXmpDocument()

getXmpDocument(resource  $stream) : \Kaloa\Xmp\Document

Returns a Kaloa\Xmp\Document of the first occurrence of XMP data in the stream.

Parameters

resource $stream

A stream resource

Throws

\Kaloa\Xmp\ReaderException

Returns

\Kaloa\Xmp\Document