Package org.apache.log4j.helpers
Class QuietWriter
- java.lang.Object
-
- java.io.Writer
-
- java.io.FilterWriter
-
- org.apache.log4j.helpers.QuietWriter
-
- All Implemented Interfaces:
Closeable,Flushable,Appendable,AutoCloseable
public class QuietWriter extends FilterWriter
QuietWriter does not throw exceptions when things go wrong. Instead, it delegates error handling to itsErrorHandler.
-
-
Field Summary
Fields Modifier and Type Field Description protected ErrorHandlererrorHandler-
Fields inherited from class java.io.FilterWriter
out
-
-
Constructor Summary
Constructors Constructor Description QuietWriter(Writer writer, ErrorHandler errorHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidflush()voidsetErrorHandler(ErrorHandler eh)voidwrite(String string)-
Methods inherited from class java.io.FilterWriter
close, write, write, write
-
-
-
-
Field Detail
-
errorHandler
protected ErrorHandler errorHandler
-
-
Constructor Detail
-
QuietWriter
public QuietWriter(Writer writer, ErrorHandler errorHandler)
-
-
Method Detail
-
flush
public void flush()
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classFilterWriter
-
setErrorHandler
public void setErrorHandler(ErrorHandler eh)
-
-