|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.neoworks.util.PushBackInputStream
Push back InputStream. This is an InputStream (not standard) that allows data to be pushed back and subsequently reread.
| Constructor Summary | |
PushBackInputStream(java.io.InputStream in)
Public constructor |
|
| Method Summary | |
void |
close()
Close the stream. |
long |
getPos()
Get the position in the Stream |
int |
read(byte[] b,
int off,
int len)
Read bytes from the stream into an array |
void |
unread(byte[] b,
int off,
int len)
Unread bytes from the stream. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PushBackInputStream(java.io.InputStream in)
in - The InputStream to wrap| Method Detail |
public long getPos()
public int read(byte[] b,
int off,
int len)
throws java.io.IOException
b - The byte array to read intooff - The offset into the byte array to begin reading intolen - The number of bytes to read
java.io.IOException
public void unread(byte[] b,
int off,
int len)
b - An array of bytes to push back onto the streamoff - The offset into the byte array to push back fromlen - The number of bytes to push back.
public void close()
throws java.io.IOException
java.io.IOException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||