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 |
ByteArrayXMPSource(java.io.ByteArrayInputStream instrm)
Constructor based on ByteArrayInputStream. |
ByteArrayXMPSource(java.io.ByteArrayInputStream instrm,
java.lang.String encoding)
Constructor based on ByteArrayInputStream with encoding. |
Method Summary |
protected void |
resetReader()
Causes reading to begin from the start again. |
Methods inherited from class org.xml.sax.InputSource |
getByteStream, getCharacterStream, getEncoding, getPublicId, getSystemId, setByteStream, setCharacterStream, setEncoding, setPublicId, setSystemId |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ByteArrayXMPSource
public ByteArrayXMPSource(java.io.ByteArrayInputStream instrm)
throws java.io.IOException
- Constructor based on ByteArrayInputStream.
- Parameters:
instrm
- ByteArrayInputStream containing the XMP
- Throws:
java.io.IOException
ByteArrayXMPSource
public ByteArrayXMPSource(java.io.ByteArrayInputStream instrm,
java.lang.String encoding)
throws java.io.IOException
- Constructor based on ByteArrayInputStream with encoding.
- Parameters:
instrm
- ByteArrayInputStream containing the XMP
- Throws:
java.io.IOException
resetReader
protected void resetReader()
- Description copied from class:
XMPSource
- Causes reading to begin from the start again.
Typically this means creating a new value for
_reader that will start over.
- Specified by:
resetReader
in class XMPSource