MetadataReaderInterface
in
Interface that metadata readers must implement.
Table of Contents
Methods
- readData() : MetadataBag
- Reads metadata from a binary string.
- readFile() : MetadataBag
- Reads metadata from a file.
- readStream() : MetadataBag
- Reads metadata from a stream.
Methods
readData()
Reads metadata from a binary string.
public
readData(string $data[, resource $originalResource = null ]) : MetadataBag
Parameters
- $data : string
-
the binary string to read
- $originalResource : resource = null
-
an optional resource to gather stream metadata
Return values
MetadataBagreadFile()
Reads metadata from a file.
public
readFile(string|LoaderInterface $file) : MetadataBag
Parameters
- $file : string|LoaderInterface
-
the path to the file where to read metadata
Tags
Return values
MetadataBagreadStream()
Reads metadata from a stream.
public
readStream(resource $resource) : MetadataBag
Parameters
- $resource : resource
-
the stream to read