Package org.opends.server.loggers
Class TextWriter.STDERR
- java.lang.Object
-
- org.opends.server.loggers.TextWriter.STDERR
-
- All Implemented Interfaces:
TextWriter
- Enclosing interface:
- TextWriter
public static class TextWriter.STDERR extends Object implements TextWriter
A TextWriter implementation which writes to standard error.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.opends.server.loggers.TextWriter
TextWriter.STDERR, TextWriter.STDOUT, TextWriter.STREAM
-
-
Constructor Summary
Constructors Constructor Description STDERR()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidflush()Flushes any buffered contents of the output stream.longgetBytesWritten()Retrieves the number of bytes written by this writer.voidshutdown()Releases any resources held by the writer.voidwriteRecord(String record)Writes a text record to the output stream.
-
-
-
Method Detail
-
writeRecord
public void writeRecord(String record)
Description copied from interface:TextWriterWrites a text record to the output stream.- Specified by:
writeRecordin interfaceTextWriter- Parameters:
record- - the record to write.
-
flush
public void flush()
Description copied from interface:TextWriterFlushes any buffered contents of the output stream.- Specified by:
flushin interfaceTextWriter
-
shutdown
public void shutdown()
Description copied from interface:TextWriterReleases any resources held by the writer.- Specified by:
shutdownin interfaceTextWriter
-
getBytesWritten
public long getBytesWritten()
Description copied from interface:TextWriterRetrieves the number of bytes written by this writer.- Specified by:
getBytesWrittenin interfaceTextWriter- Returns:
- the number of bytes written by this writer.
-
-