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, unread
public TruncateInputStream(InputStream in, String end)
public TruncateInputStream(InputStream delegate, String end, boolean caseSensitive)
public String getEndToken()
protected int getNextByte() throws IOException
getNextByte
in class PushbackInputStream
IOException
public byte[] getBuffer()
getBuffer
in interface PushbackBuffer
getBuffer
in class PushbackInputStream
Copyright © 2019 The Codehaus Foundation. All rights reserved.