Interface TextWriter
- All Known Implementing Classes:
 AsynchronousTextWriter,RotatableWriter,TextWriter.Stream,TextWriterAdapter
public interface TextWriter
A TextWriter provides a character-based stream which can be queried for number of bytes written.
- 
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classA TextWriter implementation which writes to a given output stream. - 
Method Summary
 
- 
Method Details
- 
write
Writes some text to the output stream.- Parameters:
 text- The text to write- Throws:
 IOException- If a problem occurs.
 - 
flush
Flushes any buffered contents of the output stream.- Throws:
 IOException- If a problem occurs.
 - 
shutdown
void shutdown()Releases any resources held by the writer. - 
getBytesWritten
long getBytesWritten()Retrieves the number of bytes written by this writer.- Returns:
 - the number of bytes written by this writer.
 
 
 -