public class TempReadStream extends StreamImpl
_nullPath, _path| Constructor and Description |
|---|
TempReadStream() |
TempReadStream(TempBuffer cursor) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canRead()
Returns true if this is a read stream.
|
void |
close()
Closes the stream.
|
int |
getAvailable()
Returns the number of bytes available without blocking.
|
void |
init(TempBuffer cursor) |
int |
read(byte[] buf,
int offset,
int length)
Reads the next chunk from the stream.
|
void |
setFreeWhenDone(boolean free) |
java.lang.String |
toString() |
canWrite, clearWrite, closeWrite, flush, flushBuffer, flushToDisk, getAttribute, getAttributeNames, getFlushOnNewline, getNewline, getPath, getReadBuffer, getReadPosition, hasSkip, isClosed, isEof, isMmapEnabled, isSendfileEnabled, readNonBlock, readTimeout, removeAttribute, seekEnd, seekStart, setAttribute, setPath, setWriteEncoding, skip, write, write, writeMmap, writeSendfilepublic TempReadStream(TempBuffer cursor)
public TempReadStream()
public void init(TempBuffer cursor)
public void setFreeWhenDone(boolean free)
public boolean canRead()
StreamImplcanRead in class StreamImplpublic int read(byte[] buf,
int offset,
int length)
throws java.io.IOException
StreamImplread in class StreamImplbuf - byte array receiving the data.offset - starting offset into the array.length - number of bytes to read.java.io.IOExceptionpublic int getAvailable()
throws java.io.IOException
StreamImplgetAvailable in class StreamImpljava.io.IOExceptionpublic void close()
throws java.io.IOException
StreamImplclose in class StreamImpljava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Object