|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
java.io.FilterInputStream
edu.harvard.hul.ois.jhove.module.xml.XmlDeclStream
public class 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 | |
---|---|
protected boolean |
_lineEndCR
|
protected boolean |
_lineEndCRLF
|
protected boolean |
_lineEndLF
|
protected int |
_prevChar
|
Fields inherited from class java.io.FilterInputStream |
---|
in |
Constructor Summary | |
---|---|
XmlDeclStream(java.io.InputStream strm)
|
Method Summary | |
---|---|
protected void |
checkLineEnd(int ch)
|
java.util.List<java.lang.Integer> |
getCharacterReferences()
Returns the character references as a List of Integers. |
java.lang.String |
getEncoding()
Returns the encoding string. |
java.lang.String |
getKindOfLineEnd()
|
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 |
Field Detail |
---|
protected boolean _lineEndCR
protected boolean _lineEndLF
protected boolean _lineEndCRLF
protected int _prevChar
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<java.lang.Integer> getCharacterReferences()
public java.lang.String getVersion()
public java.lang.String getEncoding()
public java.lang.String getStandalone()
protected void checkLineEnd(int ch)
public java.lang.String getKindOfLineEnd()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |