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, writeSendfilepublic void openWrite()
public char[] getTail()
public TempCharBuffer getHead()
public boolean canWrite()
canWrite in class StreamImplpublic void write(char[] buf,
int offset,
int length)
throws java.io.IOException
java.io.IOExceptionpublic void write(java.lang.String s,
int offset,
int length)
throws java.io.IOException
java.io.IOExceptionpublic void write(int ch)
throws java.io.IOException
java.io.IOExceptionpublic void flush()
throws java.io.IOException
StreamImplflush in class StreamImpljava.io.IOExceptionpublic void close()
throws java.io.IOException
StreamImplclose in class StreamImpljava.io.IOExceptionpublic int getLength()
public void clearWrite()
StreamImplclearWrite in class StreamImplpublic void discard()
public void destroy()