public class EncoderStream extends StreamImpl
_nullPath, _path| Modifier and Type | Method and Description |
|---|---|
boolean |
canRead()
Returns true if this is a read stream.
|
int |
getAvailable()
Returns the number of bytes available without blocking.
|
Path |
getPath()
Returns the Path associated with the stream.
|
static ReadStream |
open(java.io.Reader reader,
java.lang.String charset) |
int |
read(byte[] buf,
int offset,
int length)
Reads the next chunk from the stream.
|
canWrite, clearWrite, close, closeWrite, flush, flushBuffer, flushToDisk, getAttribute, getAttributeNames, getFlushOnNewline, getNewline, getReadBuffer, getReadPosition, hasSkip, isClosed, isEof, isMmapEnabled, isSendfileEnabled, readNonBlock, readTimeout, removeAttribute, seekEnd, seekStart, setAttribute, setPath, setWriteEncoding, skip, write, write, writeMmap, writeSendfilepublic static ReadStream open(java.io.Reader reader, java.lang.String charset)
public Path getPath()
StreamImplgetPath in class StreamImplpublic 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.IOException