ErrorAware, LogTarget, Closeablepublic class WriterTarget extends AbstractOutputTarget
| Modifier and Type | Field | Description |
|---|---|---|
private java.io.Writer |
m_output |
| Constructor | Description |
|---|---|
WriterTarget(java.io.Writer writer,
Formatter formatter) |
Construct target with a specific writer and formatter.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
Shutdown target.
|
protected void |
setWriter(java.io.Writer writer) |
Set the writer.
|
protected void |
shutdownWriter() |
Shutdown Writer.
|
protected void |
write(java.lang.String data) |
Concrete implementation of output that writes out to underlying writer.
|
doProcessEvent, getFormatter, opengetErrorHandler, isOpen, processEvent, setErrorHandlerpublic WriterTarget(java.io.Writer writer,
Formatter formatter)
writer - the writerformatter - the formatterprotected void setWriter(java.io.Writer writer)
writer - the new writerprotected void write(java.lang.String data)
write in class AbstractOutputTargetdata - the data to outputpublic void close()
close in interface Closeableclose in class AbstractOutputTargetprotected void shutdownWriter()
Copyright © 2003-2004 The Apache Software Foundation. All Rights Reserved.