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
public abstract class XMPSource extends InputSource
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
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description PropertymakeProperty()Generates a property from the underlying data.protected abstract voidresetReader()Causes 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 Detail
-
_reader
protected Reader _reader
The Reader on which the InputSource is based.
-
-
Constructor Detail
-
XMPSource
public XMPSource(Reader rdr)
Constructor with Reader.
-
-
Method Detail
-
makeProperty
public Property makeProperty() throws IOException
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.
-
-