- Classes
- Namespaces
- Interfaces
- Traits
- Index

Class

# Imagine\Image\Metadata\DefaultMetadataReader

class DefaultMetadataReader extends AbstractMetadataReader

Default metadata reader

## Methods

MetadataBag | readFile($file $file) Reads metadata from a file. | from AbstractMetadataReader
MetadataBag | readData($data $data) Reads metadata from a binary string. | from AbstractMetadataReader
MetadataBag | readStream($resource $resource) Reads metadata from a stream. | from AbstractMetadataReader

## Details

###
in AbstractMetadataReader at line 21
`public MetadataBag readFile($file $file)`

Reads metadata from a file.

#### Parameters

$file | $file | The path to the file where to read metadata.

#### Return Value

MetadataBag |

#### Exceptions

InvalidArgumentException | In case the file does not exist.

###
in AbstractMetadataReader at line 37
`public MetadataBag readData($data $data)`

Reads metadata from a binary string.

#### Parameters

$data | $data | The binary string to read.

#### Return Value

MetadataBag |

###
in AbstractMetadataReader at line 45
`public MetadataBag readStream($resource $resource)`

Reads metadata from a stream.

#### Parameters

$resource | $resource | The stream to read.

#### Return Value

MetadataBag |

#### Exceptions

InvalidArgumentException | In case the resource is not valid.