ErrorAware
, LogTarget
, Closeable
public 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, open
getErrorHandler, isOpen, processEvent, setErrorHandler
public 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 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.