|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.log.output.AbstractTarget | +--org.apache.log.output.AbstractOutputTarget | +--org.apache.log.output.io.WriterTarget
This target outputs to a writer.
Field Summary | |
protected Writer |
m_output
Deprecated. Accessing this variable in subclasses is no longer supported and will become private in the future. |
Fields inherited from class org.apache.log.output.AbstractOutputTarget |
m_formatter |
Constructor Summary | |
WriterTarget(Writer writer,
Formatter formatter)
Construct target with a specific writer and formatter. |
Method Summary | |
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. |
Methods inherited from class org.apache.log.output.AbstractOutputTarget |
doProcessEvent, getFormatter, open, output, setFormatter |
Methods inherited from class org.apache.log.output.AbstractTarget |
error, getErrorHandler, isOpen, processEvent, setErrorHandler |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Writer m_output
Constructor Detail |
public WriterTarget(Writer writer, Formatter formatter)
writer
- the writerformatter
- the formatterMethod Detail |
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 class AbstractOutputTarget
protected void shutdownWriter()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |