|
Openfire 3.6.0 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jivesoftware.util.log.output.AbstractTarget org.jivesoftware.util.log.output.AbstractOutputTarget org.jivesoftware.util.log.output.io.StreamTarget
public class StreamTarget
A basic target that writes to an OutputStream.
Constructor Summary | |
---|---|
StreamTarget(OutputStream outputStream,
Formatter formatter)
Constructor that writes to a stream and uses a particular formatter. |
Method Summary | |
---|---|
void |
close()
Shutdown target. |
protected void |
setOutputStream(OutputStream outputStream)
Set the output stream. |
protected void |
shutdownStream()
Shutdown output stream. |
protected void |
write(String data)
Abstract method that will output event. |
Methods inherited from class org.jivesoftware.util.log.output.AbstractOutputTarget |
---|
doProcessEvent, getFormatter, open, output, setFormatter |
Methods inherited from class org.jivesoftware.util.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 |
Constructor Detail |
---|
public StreamTarget(OutputStream outputStream, Formatter formatter)
outputStream
- the OutputStream to send toformatter
- the Formatter to useMethod Detail |
---|
protected void setOutputStream(OutputStream outputStream)
outputStream
- the new OutputStreamprotected void write(String data)
write
in class AbstractOutputTarget
data
- the data to be outputpublic void close()
close
in class AbstractOutputTarget
protected void shutdownStream()
|
Openfire 3.6.0 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |