Class TextWriter.Stream
- java.lang.Object
-
- org.forgerock.audit.events.handlers.writers.TextWriter.Stream
-
- All Implemented Interfaces:
TextWriter
- Enclosing interface:
- TextWriter
public static class TextWriter.Stream extends Object implements TextWriter
A TextWriter implementation which writes to a given output stream.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.forgerock.audit.events.handlers.writers.TextWriter
TextWriter.Stream
-
-
Constructor Summary
Constructors Constructor Description Stream(OutputStream outputStream)Creates a new text writer that will write to the provided output stream.
-
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.voidwrite(String text)Writes some text to the output stream.
-
-
-
Constructor Detail
-
Stream
public Stream(OutputStream outputStream)
Creates a new text writer that will write to the provided output stream.- Parameters:
outputStream- The output stream to which
-
-
Method Detail
-
write
public void write(String text)
Description copied from interface:TextWriterWrites some text to the output stream.- Specified by:
writein interfaceTextWriter- Parameters:
text- The text 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.
-
-