|
JCas v0.3.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.InputStream cas.xml.XmlInputStream
This class wraps an input stream and prevents the XML parser from closing the stream.
Field Summary | |
protected InputStream |
in
The underlying input stream |
Constructor Summary | |
XmlInputStream(InputStream in)
|
Method Summary | |
int |
available()
Returns the number of bytes that can be read (or skipped over) from this input stream without blocking by the next caller of a method for this input stream. |
void |
close()
Does actually nothing to prevent closing the stream. |
void |
mark(int readlimit)
Marks the current position in this input stream. |
boolean |
markSupported()
Tests if this input stream supports the mark and reset methods. |
int |
read()
Reads the next byte of data from the underlying input stream. |
int |
read(byte[] b)
Reads some number of bytes from the input stream and stores them into the buffer array b. |
int |
read(byte[] b,
int off,
int len)
Reads up to len bytes of data from the input stream into an array of bytes. |
void |
reset()
Repositions this stream to the position at the time the mark method was last called on this input stream. |
long |
skip(long n)
Skips over and discards n bytes of data from this input stream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected InputStream in
Constructor Detail |
public XmlInputStream(InputStream in)
Method Detail |
public int read() throws IOException
IOException
public int available() throws IOException
IOException
public void close() throws IOException
IOException
public void mark(int readlimit)
public boolean markSupported()
public int read(byte[] b) throws IOException
IOException
public int read(byte[] b, int off, int len) throws IOException
IOException
public void reset() throws IOException
IOException
public long skip(long n) throws IOException
IOException
|
JCas v0.3.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |