public class TempCharStream extends StreamImpl
_nullPath, _path
Constructor and Description |
---|
TempCharStream() |
Modifier and Type | Method and Description |
---|---|
boolean |
canWrite()
Returns true since the temp stream can write.
|
void |
clearWrite()
Clears any buffered values in the write.
|
void |
close()
Closes the stream.
|
void |
destroy()
Clean up the temp stream.
|
void |
discard() |
void |
flush()
Flushes the write output.
|
TempCharBuffer |
getHead()
Returns the head.
|
int |
getLength()
Returns the total length of the buffer's bytes
|
char[] |
getTail()
Returns the tail buffer.
|
void |
openWrite()
Initializes the temp stream for writing.
|
void |
write(char[] buf,
int offset,
int length) |
void |
write(int ch) |
void |
write(java.lang.String s,
int offset,
int length)
Writes part of a string.
|
canRead, closeWrite, flushBuffer, flushToDisk, getAttribute, getAttributeNames, getAvailable, getFlushOnNewline, getNewline, getPath, getReadBuffer, getReadPosition, hasSkip, isClosed, isEof, isMmapEnabled, isSendfileEnabled, read, readNonBlock, readTimeout, removeAttribute, seekEnd, seekStart, setAttribute, setPath, setWriteEncoding, skip, write, write, writeMmap, writeSendfile
public void openWrite()
public char[] getTail()
public TempCharBuffer getHead()
public boolean canWrite()
canWrite
in class StreamImpl
public void write(char[] buf, int offset, int length) throws java.io.IOException
java.io.IOException
public void write(java.lang.String s, int offset, int length) throws java.io.IOException
java.io.IOException
public void write(int ch) throws java.io.IOException
java.io.IOException
public void flush() throws java.io.IOException
StreamImpl
flush
in class StreamImpl
java.io.IOException
public void close() throws java.io.IOException
StreamImpl
close
in class StreamImpl
java.io.IOException
public int getLength()
public void clearWrite()
StreamImpl
clearWrite
in class StreamImpl
public void discard()
public void destroy()