Methods Summary |
---|
public void | bufferMessage()
if (!isBuffered) {
final ByteArrayBuffer baBuffer = new ByteArrayBuffer();
try {
baBuffer.write(inputStream);
inputStream = baBuffer.newInputStream();
bufferedSize = baBuffer.size();
isBuffered = true;
} finally {
baBuffer.close();
}
}
|
public void | close()
isClosed = true;
inputStream.close();
|
public int | getBufferedSize()
if (isBuffered) {
return bufferedSize;
}
return 0;
|
public java.io.InputStream | getSourceInputStream()
return inputStream;
|
public boolean | isBuffered()
return isBuffered;
|
public boolean | isClosed()
return isClosed;
|
public int | read()
return inputStream.read();
|
public int | read(byte[] b, int offset, int length)
return inputStream.read(b, offset, length);
|