org.apache.log4j.helpers

Class QuietWriter

Known Direct Subclasses:
CountingQuietWriter, SyslogQuietWriter

public class QuietWriter
extends FilterWriter

QuietWriter does not throw exceptions when things go wrong. Instead, it delegates error handling to its ErrorHandler.
Author:
Ceki Gülcü
Since:
0.7.3

Field Summary

protected ErrorHandler
errorHandler

Constructor Summary

QuietWriter(Writer writer, ErrorHandler errorHandler)

Method Summary

void
flush()
void
setErrorHandler(ErrorHandler eh)
void
write(String string)

Field Details

errorHandler

protected ErrorHandler errorHandler

Constructor Details

QuietWriter

public QuietWriter(Writer writer,
                   ErrorHandler errorHandler)

Method Details

flush

public void flush()

setErrorHandler

public void setErrorHandler(ErrorHandler eh)

write

public void write(String string)

Copyright 2000-2005 Apache Software Foundation.