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
-
public class ByteArrayXMPSource extends XMPSource
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
-
-
Constructor Summary
Constructors Constructor Description ByteArrayXMPSource(ByteArrayInputStream instrm)Constructor based on ByteArrayInputStream.ByteArrayXMPSource(ByteArrayInputStream instrm, String encoding)Constructor based on ByteArrayInputStream with encoding.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidresetReader()Causes reading to begin from the start again.-
Methods inherited from class edu.harvard.hul.ois.jhove.XMPSource
makeProperty
-
Methods inherited from class org.xml.sax.InputSource
getByteStream, getCharacterStream, getEncoding, getPublicId, getSystemId, isEmpty, setByteStream, setCharacterStream, setEncoding, setPublicId, setSystemId
-
-
-
-
Constructor Detail
-
ByteArrayXMPSource
public ByteArrayXMPSource(ByteArrayInputStream instrm)
Constructor based on ByteArrayInputStream.- Parameters:
instrm- ByteArrayInputStream containing the XMP
-
ByteArrayXMPSource
public ByteArrayXMPSource(ByteArrayInputStream instrm, String encoding) throws IOException
Constructor based on ByteArrayInputStream with encoding.- Parameters:
instrm- ByteArrayInputStream containing the XMP- Throws:
IOException
-
-
Method Detail
-
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
-
-