Package digilib.meta
Class IndexMetaLoader
- java.lang.Object
-
- digilib.meta.IndexMetaLoader
-
public class IndexMetaLoader extends Object
Class loading index.meta files with metadata extracting some image file related information. Extracts into the MetadataMap all tags in the meta/img tag as key-value pairs and the content of the meta/context tag as XML. Returns a map with filenames and MetadataMaps. Implemented using javax.xml.parsers.SAXParser.- Author:
- Robert Casties
- See Also:
- index.meta spec
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.Logger
logger
-
Constructor Summary
Constructors Constructor Description IndexMetaLoader()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Map<String,MetadataMap>
loadUri(URI uri)
Load and parse a file (as URI).Map<String,MetadataMap>
loadURL(String path)
Deprecated.UseloadUri(URI)
instead
-
-
-
Method Detail
-
loadURL
public Map<String,MetadataMap> loadURL(String path) throws SAXException, IOException
Deprecated.UseloadUri(URI)
insteadload and parse a file (as URL) returns HashMap with list data- Parameters:
path
- the path- Returns:
- the metadata
- Throws:
SAXException
- on errorIOException
- on error
-
loadUri
public Map<String,MetadataMap> loadUri(URI uri) throws SAXException, IOException
Load and parse a file (as URI). returns HashMap with list data- Parameters:
uri
- the URI- Returns:
- the metadata
- Throws:
SAXException
- on errorIOException
- on error
-
-