public class WriterStreamImpl extends StreamImpl
_nullPath, _path| Constructor and Description |
|---|
WriterStreamImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canWrite()
Returns true if this is a writable stream.
|
void |
close()
Closes the output.
|
void |
flush()
Flushes the write output.
|
void |
setWriteEncoding(java.lang.String encoding)
Sets the write encoding.
|
void |
setWriter(java.io.Writer writer)
Sets the writer.
|
void |
write(byte[] buffer,
int offset,
int length,
boolean isEnd)
Writes a buffer to the underlying stream.
|
canRead, clearWrite, closeWrite, flushBuffer, flushToDisk, getAttribute, getAttributeNames, getAvailable, getFlushOnNewline, getNewline, getPath, getReadBuffer, getReadPosition, hasSkip, isClosed, isEof, isMmapEnabled, isSendfileEnabled, read, readNonBlock, readTimeout, removeAttribute, seekEnd, seekStart, setAttribute, setPath, skip, write, writeMmap, writeSendfilepublic void setWriter(java.io.Writer writer)
public boolean canWrite()
canWrite in class StreamImplpublic void setWriteEncoding(java.lang.String encoding)
setWriteEncoding in class StreamImplpublic void write(byte[] buffer,
int offset,
int length,
boolean isEnd)
throws java.io.IOException
write in class StreamImplbuffer - the byte array to write.offset - the offset into the byte array.length - the number of bytes to write.isEnd - true when the write is flushing a close.java.io.IOExceptionpublic void flush()
throws java.io.IOException
flush in class StreamImpljava.io.IOExceptionpublic void close()
close in class StreamImpl