|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
org.codehaus.swizzle.stream.PushbackInputStream
public class PushbackInputStream
Constructor Summary | |
---|---|
PushbackInputStream()
|
|
PushbackInputStream(java.io.InputStream delegate)
|
Method Summary | |
---|---|
protected void |
addToMarkBuffer(byte b)
Add a byte to the mark buffer if mark is active |
byte[] |
getBuffer()
Gets the current contents of the buffer without modifying the position. |
java.io.InputStream |
getDelegate()
|
protected int |
getNextByte()
|
void |
mark(int readlimit)
Activate mark/reset buffer. |
boolean |
markSupported()
|
int |
read()
|
void |
reset()
Push the mark/reset buffer onto the pushback buffer, and release the mark |
void |
unmark()
Release current mark/reset buffer. |
void |
unread(byte[] bytes)
Push the bytes on to the head of the buffer, so they are the next bytes returned. |
void |
unread(byte[] bytes,
int off,
int len)
Push the bytes on to the head of the buffer, so they are the next bytes returned. |
Methods inherited from class java.io.InputStream |
---|
available, close, read, read, skip |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PushbackInputStream()
public PushbackInputStream(java.io.InputStream delegate)
Method Detail |
---|
public java.io.InputStream getDelegate()
public int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
protected int getNextByte() throws java.io.IOException
java.io.IOException
protected void addToMarkBuffer(byte b)
public boolean markSupported()
markSupported
in class java.io.InputStream
public void mark(int readlimit)
mark
in class java.io.InputStream
readlimit
- suggested mark buffer sizepublic void unmark()
public void reset()
reset
in class java.io.InputStream
public void unread(byte[] bytes)
PushbackBuffer
unread
in interface PushbackBuffer
public void unread(byte[] bytes, int off, int len)
PushbackBuffer
unread
in interface PushbackBuffer
public byte[] getBuffer()
PushbackBuffer
getBuffer
in interface PushbackBuffer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |