Class TextWriterAdapter
java.lang.Object
java.io.Writer
org.forgerock.audit.events.handlers.writers.TextWriterAdapter
- All Implemented Interfaces:
 Closeable,Flushable,Appendable,AutoCloseable,TextWriter
Wraps a 
TextWriter in  a Writer.- 
Nested Class Summary
Nested classes/interfaces inherited from interface org.forgerock.audit.events.handlers.writers.TextWriter
TextWriter.Stream - 
Field Summary
 - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidflush()Flushes any buffered contents of the output stream.longRetrieves the number of bytes written by this writer.voidshutdown()Releases any resources held by the writer.voidwrite(char[] cbuf) voidwrite(char[] cbuf, int off, int len) voidwrite(int c) voidWrites some text to the output stream.voidMethods inherited from class java.io.Writer
append, append, append, nullWriter 
- 
Constructor Details
- 
TextWriterAdapter
Creates the writer.- Parameters:
 delegate- Delegate writer.
 
 - 
 - 
Method Details
- 
write
- Specified by:
 writein classWriter- Throws:
 IOException
 - 
write
- Overrides:
 writein classWriter- Throws:
 IOException
 - 
write
- Overrides:
 writein classWriter- Throws:
 IOException
 - 
write
Description copied from interface:TextWriterWrites some text to the output stream.- Specified by:
 writein interfaceTextWriter- Overrides:
 writein classWriter- Parameters:
 str- The text to write- Throws:
 IOException- If a problem occurs.
 - 
write
- Overrides:
 writein classWriter- Throws:
 IOException
 - 
flush
Description copied from interface:TextWriterFlushes any buffered contents of the output stream.- Specified by:
 flushin interfaceFlushable- Specified by:
 flushin interfaceTextWriter- Specified by:
 flushin classWriter- Throws:
 IOException- If a problem occurs.
 - 
close
- Specified by:
 closein interfaceAutoCloseable- Specified by:
 closein interfaceCloseable- Specified by:
 closein classWriter- Throws:
 IOException
 - 
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.
 
 
 -