|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.io.InputStream | +--java.io.FilterInputStream | +--edu.harvard.hul.ois.jhove.module.xml.XmlDeclStream
This class is layered under the InputSource for the XmlModule so that it can detect an XML declaration and character references, which aren't reported by other API's. This is called XmlDeclStream for historical reasons, though it's no longer limited to that function.
Field Summary |
Fields inherited from class java.io.FilterInputStream |
in |
Constructor Summary | |
XmlDeclStream(java.io.InputStream strm)
|
Method Summary | |
java.util.List |
getCharacterReferences()
Returns the character references as a List of Integers. |
java.lang.String |
getEncoding()
Returns the encoding string. |
java.lang.String |
getStandalone()
Returns the standalone string. |
java.lang.String |
getVersion()
Returns the version string. |
int |
read()
Reads the next byte of data from this input stream. |
int |
read(byte[] b)
Reads up to byte.length bytes of data from this
input stream into an array of bytes. |
int |
read(byte[] b,
int off,
int len)
Reads up to len bytes of data from this
input stream into an array of bytes. |
Methods inherited from class java.io.FilterInputStream |
available, close, mark, markSupported, reset, skip |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XmlDeclStream(java.io.InputStream strm)
Method Detail |
public int read() throws java.io.IOException
read
in class java.io.FilterInputStream
java.io.IOException
public int read(byte[] b) throws java.io.IOException
byte.length
bytes of data from this
input stream into an array of bytes.
Processes bytes as it reads them.
read
in class java.io.FilterInputStream
java.io.IOException
public int read(byte[] b, int off, int len) throws java.io.IOException
len
bytes of data from this
input stream into an array of bytes.
Processes bytes as it reads them.
read
in class java.io.FilterInputStream
java.io.IOException
public java.util.List getCharacterReferences()
public java.lang.String getVersion()
public java.lang.String getEncoding()
public java.lang.String getStandalone()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |