public class TruncateInputStream extends PushbackInputStream
| Constructor and Description |
|---|
TruncateInputStream(InputStream in,
String end) |
TruncateInputStream(InputStream delegate,
String end,
boolean caseSensitive) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBuffer()
Gets the current contents of the buffer
|
String |
getEndToken() |
protected int |
getNextByte() |
addToMarkBuffer, getDelegate, mark, markSupported, read, reset, unmark, unread, unreadpublic TruncateInputStream(InputStream in, String end)
public TruncateInputStream(InputStream delegate, String end, boolean caseSensitive)
public String getEndToken()
protected int getNextByte()
throws IOException
getNextByte in class PushbackInputStreamIOExceptionpublic byte[] getBuffer()
getBuffer in interface PushbackBuffergetBuffer in class PushbackInputStreamCopyright © 2016 The Codehaus Foundation. All rights reserved.