Package org.opends.server.loggers
Interface TextWriter
-
- All Known Implementing Classes:
TextWriter.STDERR,TextWriter.STDOUT,TextWriter.STREAM
public interface TextWriterA TextWriter provides a character-based stream used by a Text Publishers as a target for outputting log records.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classTextWriter.STDERRA TextWriter implementation which writes to standard error.static classTextWriter.STDOUTA TextWriter implementation which writes to standard out.static classTextWriter.STREAMA TextWriter implementation which writes to a given output stream.
-
Method Summary
All Methods Instance Methods Abstract 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
void writeRecord(String record)
Writes a text record to the output stream.- Parameters:
record- - the record to write.
-
flush
void flush()
Flushes any buffered contents of the output stream.
-
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.
-
-