Package edu.harvard.hul.ois.jhove
Class XMPSource
java.lang.Object
org.xml.sax.InputSource
edu.harvard.hul.ois.jhove.XMPSource
- Direct Known Subclasses:
ByteArrayXMPSource
Class for providing an InputSource to XMPHandler.
Only an InputSource based on a Reader is supported.
Each module can provide its own subclass of XMPSource.
The subclass must provide a way to
reset to the beginning and reread the data when makeProperty
is called.
- Author:
- Gary McGath
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGenerates a property from the underlying data.protected abstract voidCauses reading to begin from the start again.Methods inherited from class org.xml.sax.InputSource
getByteStream, getCharacterStream, getEncoding, getPublicId, getSystemId, isEmpty, setByteStream, setCharacterStream, setEncoding, setPublicId, setSystemId
-
Field Details
-
_reader
The Reader on which the InputSource is based.
-
-
Constructor Details
-
XMPSource
Constructor with Reader.
-
-
Method Details
-
makeProperty
Generates a property from the underlying data. The beginning and ending processing instructions are stripped out.- Throws:
IOException
-
resetReader
protected abstract void resetReader()Causes reading to begin from the start again. Typically this means creating a new value for _reader that will start over.
-