org.codehaus.swizzle.stream
Interface PushbackBuffer

All Known Implementing Classes:
PushbackInputStream, TruncateInputStream

public interface PushbackBuffer


Method Summary
 byte[] getBuffer()
          Gets the current contents of the buffer without modifying the position.
 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.
 

Method Detail

unread

void unread(byte[] bytes)
Push the bytes on to the head of the buffer, so they are the next bytes returned.


unread

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.


getBuffer

byte[] getBuffer()
Gets the current contents of the buffer without modifying the position.



Copyright © 2011 The Codehaus Foundation. All Rights Reserved.