org.apache.log4j.helpers
Class QuietWriter
java.lang.Object
|
+--java.io.Writer
|
+--java.io.FilterWriter
|
+--org.apache.log4j.helpers.QuietWriter
- Direct Known Subclasses:
- CountingQuietWriter, SyslogQuietWriter
- public class QuietWriter
- extends java.io.FilterWriter
QuietWriter does not throw exceptions when things go
wrong. Instead, it delegates error handling to its ErrorHandler
.
- Since:
- 0.7.3
- Author:
- Ceki Gülcü
Fields inherited from class java.io.FilterWriter |
out |
Fields inherited from class java.io.Writer |
lock |
Methods inherited from class java.io.FilterWriter |
close, write, write, write |
Methods inherited from class java.io.Writer |
write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
errorHandler
protected ErrorHandler errorHandler
QuietWriter
public QuietWriter(java.io.Writer writer,
ErrorHandler errorHandler)
getWriter
public java.io.Writer getWriter()
write
public void write(java.lang.String string)
- Overrides:
write
in class java.io.Writer
flush
public void flush()
- Overrides:
flush
in class java.io.FilterWriter
setErrorHandler
public void setErrorHandler(ErrorHandler eh)
Copyright 2000-2003 Apache Software Foundation.