@Component(role=MetadataReader.class) public class DefaultMetadataReader extends Object implements MetadataReader
IS_STRICT| Constructor and Description | 
|---|
DefaultMetadataReader()  | 
| Modifier and Type | Method and Description | 
|---|---|
Metadata | 
read(File input,
        Map<String,?> options)
Reads the metadata from the specified file. 
 | 
Metadata | 
read(InputStream input,
        Map<String,?> options)
Reads the metadata from the specified byte stream. 
 | 
Metadata | 
read(Reader input,
        Map<String,?> options)
Reads the metadata from the specified character reader. 
 | 
public DefaultMetadataReader()
public Metadata read(File input, Map<String,?> options) throws 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.IOException - If the metadata could not be deserialized.MetadataParseException - If the input format could not be parsed.public Metadata read(Reader input, Map<String,?> options) throws 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.IOException - If the metadata could not be deserialized.MetadataParseException - If the input format could not be parsed.public Metadata read(InputStream input, Map<String,?> options) throws 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.IOException - If the metadata could not be deserialized.MetadataParseException - If the input format could not be parsed.Copyright © 2001–2013 The Apache Software Foundation. All rights reserved.