|
||||||||||
| 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(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. |
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(InputStream delegate)
| Method Detail |
|---|
public InputStream getDelegate()
public int read()
throws IOException
read in class InputStreamIOException
protected int getNextByte()
throws IOException
IOExceptionprotected void addToMarkBuffer(byte b)
public boolean markSupported()
markSupported in class InputStreampublic void mark(int readlimit)
mark in class InputStreamreadlimit - suggested mark buffer sizepublic void unmark()
public void reset()
reset in class InputStreampublic void unread(byte[] bytes)
PushbackBuffer
unread in interface PushbackBuffer
public void unread(byte[] bytes,
int off,
int len)
PushbackBuffer
unread in interface PushbackBufferpublic byte[] getBuffer()
PushbackBuffer
getBuffer in interface PushbackBuffer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||