org.apache.log.output.io
public class WriterTarget extends AbstractOutputTarget
Constructor and Description |
---|
WriterTarget(Writer writer,
Formatter formatter)
Construct target with a specific writer and formatter.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Shutdown target.
|
protected void |
setWriter(Writer writer)
Set the writer.
|
protected void |
shutdownWriter()
Shutdown Writer.
|
protected void |
write(String data)
Concrete implementation of output that writes out to underlying writer.
|
doProcessEvent, getFormatter, open
getErrorHandler, isOpen, processEvent, setErrorHandler
private Writer m_output
protected void setWriter(Writer writer)
writer
- the new writerprotected void write(String data)
write
in class AbstractOutputTarget
data
- the data to outputpublic void close()
close
in interface Closeable
close
in class AbstractOutputTarget
protected void shutdownWriter()
Copyright © 2003-2004 The Apache Software Foundation. All Rights Reserved.