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 ErrorHandler
errorHandler
-
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 void
flush()
void
setErrorHandler(ErrorHandler eh)
void
write(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:
flush
in interfaceFlushable
- Overrides:
flush
in classFilterWriter
-
setErrorHandler
public void setErrorHandler(ErrorHandler eh)
-
-