@Component(role=MetadataReader.class) public class DefaultMetadataReader extends java.lang.Object implements MetadataReader
IS_STRICT| Constructor and Description |
|---|
DefaultMetadataReader() |
| Modifier and Type | Method and Description |
|---|---|
private boolean |
isStrict(java.util.Map<java.lang.String,?> options) |
Metadata |
read(java.io.File input,
java.util.Map<java.lang.String,?> options)
Reads the metadata from the specified file.
|
Metadata |
read(java.io.InputStream input,
java.util.Map<java.lang.String,?> options)
Reads the metadata from the specified byte stream.
|
Metadata |
read(java.io.Reader input,
java.util.Map<java.lang.String,?> options)
Reads the metadata from the specified character reader.
|
public Metadata read(java.io.File input, java.util.Map<java.lang.String,?> options) throws java.io.IOException
MetadataReaderread in interface MetadataReaderinput - The file to deserialize the metadata from, must not be null.options - The options to use for deserialization, may be null to use the default values.null.java.io.IOException - If the metadata could not be deserialized.MetadataParseException - If the input format could not be parsed.public Metadata read(java.io.Reader input, java.util.Map<java.lang.String,?> options) throws java.io.IOException
MetadataReaderread in interface MetadataReaderinput - The reader to deserialize the metadata from, must not be null.options - The options to use for deserialization, may be null to use the default values.null.java.io.IOException - If the metadata could not be deserialized.MetadataParseException - If the input format could not be parsed.public Metadata read(java.io.InputStream input, java.util.Map<java.lang.String,?> options) throws java.io.IOException
MetadataReaderread in interface MetadataReaderinput - The stream to deserialize the metadata from, must not be null.options - The options to use for deserialization, may be null to use the default values.null.java.io.IOException - If the metadata could not be deserialized.MetadataParseException - If the input format could not be parsed.private boolean isStrict(java.util.Map<java.lang.String,?> options)