org.opends.server.loggers
Class TextWriter.STDOUT

java.lang.Object
  extended by org.opends.server.loggers.TextWriter.STDOUT
All Implemented Interfaces:
TextWriter
Enclosing interface:
TextWriter

public static class TextWriter.STDOUT
extends java.lang.Object
implements TextWriter

A TextWriter implementationwhich writes to standard out.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.opends.server.loggers.TextWriter
TextWriter.STDERR, TextWriter.STDOUT, TextWriter.STREAM
 
Constructor Summary
TextWriter.STDOUT()
           
 
Method Summary
 void flush()
          Flushes any buffered contents of the output stream.
 long getBytesWritten()
          Retrieves the number of bytes written by this writer.
 void shutdown()
          Releases any resources held by the writer.
 void writeRecord(java.lang.String record)
          Writes a text record to the output stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextWriter.STDOUT

public TextWriter.STDOUT()
Method Detail

writeRecord

public void writeRecord(java.lang.String record)
Writes a text record to the output stream.

Specified by:
writeRecord in interface TextWriter
Parameters:
record - - the record to write.

flush

public void flush()
Flushes any buffered contents of the output stream.

Specified by:
flush in interface TextWriter

shutdown

public void shutdown()
Releases any resources held by the writer.

Specified by:
shutdown in interface TextWriter

getBytesWritten

public long getBytesWritten()
Retrieves the number of bytes written by this writer.

Specified by:
getBytesWritten in interface TextWriter
Returns:
the number of bytes written by this writer.