Package edu.harvard.hul.ois.jhove
Class ByteArrayXMPSource
java.lang.Object
org.xml.sax.InputSource
edu.harvard.hul.ois.jhove.XMPSource
edu.harvard.hul.ois.jhove.ByteArrayXMPSource
Class for providing an InputSource to XMPHandler,
with a ByteArrayInputStream as the basis of the
InputSource. This is suitable for a number of modules.
- Author:
- Gary McGath
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor based on ByteArrayInputStream.ByteArrayXMPSource(ByteArrayInputStream instrm, String encoding) Constructor based on ByteArrayInputStream with encoding. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidCauses reading to begin from the start again.Methods inherited from class edu.harvard.hul.ois.jhove.XMPSource
makePropertyMethods inherited from class org.xml.sax.InputSource
getByteStream, getCharacterStream, getEncoding, getPublicId, getSystemId, isEmpty, setByteStream, setCharacterStream, setEncoding, setPublicId, setSystemId
-
Constructor Details
-
ByteArrayXMPSource
Constructor based on ByteArrayInputStream.- Parameters:
instrm- ByteArrayInputStream containing the XMP
-
ByteArrayXMPSource
Constructor based on ByteArrayInputStream with encoding.- Parameters:
instrm- ByteArrayInputStream containing the XMP- Throws:
IOException
-
-
Method Details
-
resetReader
protected void resetReader()Description copied from class:XMPSourceCauses reading to begin from the start again. Typically this means creating a new value for _reader that will start over.- Specified by:
resetReaderin classXMPSource
-