|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.io.InputStream | +--satc.DocumentStream
Class to provide InputStream functionality from a portion of a Document.
Constructor Summary | |
DocumentStream()
|
Method Summary | |
int |
read()
Reads the next byte of data from this input stream. |
void |
reset()
|
void |
setDocument(java.lang.Object doc)
|
void |
setRange(int p0,
int p1)
Restrict the stream to a range of the document. |
Methods inherited from class java.io.InputStream |
available, close, mark, markSupported, read, read, skip |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DocumentStream()
Method Detail |
public void setDocument(java.lang.Object doc)
public void setRange(int p0, int p1)
public int read() throws java.io.IOException
int
in the range
0
to 255
. If no byte is available
because the end of the stream has been reached, the value
-1
is returned. This method blocks until input data
is available, the end of the stream is detected, or an exception
is thrown.
A subclass must provide an implementation of this method.
read
in class java.io.InputStream
-1
if the end of the
stream is reached.java.io.IOException
- if an I/O error occurs.public void reset()
reset
in class java.io.InputStream
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |