public class InputStreamStream extends StreamImpl
_nullPath, _path
Constructor and Description |
---|
InputStreamStream(java.io.InputStream is) |
Modifier and Type | Method and Description |
---|---|
boolean |
canRead()
Returns true if this is a read stream.
|
int |
read(byte[] buffer,
int offset,
int length)
Reads the next chunk from the stream.
|
canWrite, clearWrite, close, closeWrite, flush, flushBuffer, flushToDisk, getAttribute, getAttributeNames, getAvailable, getFlushOnNewline, getNewline, getPath, getReadBuffer, getReadPosition, hasSkip, isClosed, isEof, isMmapEnabled, isSendfileEnabled, readNonBlock, readTimeout, removeAttribute, seekEnd, seekStart, setAttribute, setPath, setWriteEncoding, skip, write, write, writeMmap, writeSendfile
public boolean canRead()
canRead
in class StreamImpl
public int read(byte[] buffer, int offset, int length) throws java.io.IOException
StreamImpl
read
in class StreamImpl
buffer
- byte array receiving the data.offset
- starting offset into the array.length
- number of bytes to read.java.io.IOException