|
|||||||||||
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.net.DatagramOutputTarget
A datagram output target. Useful for writing using custom protocols or writing to syslog daemons.
Constructor Summary | |
DatagramOutputTarget(java.net.InetAddress address,
int port)
Create a output target with end point specified by address and port. |
|
DatagramOutputTarget(java.net.InetAddress address,
int port,
Formatter formatter)
Create a output target with end point specified by address and port. |
|
DatagramOutputTarget(java.net.InetAddress address,
int port,
Formatter formatter,
java.lang.String encoding)
Create a output target with end point specified by address and port. |
Method Summary | |
void |
close()
Shutdown target. |
protected void |
write(java.lang.String stringData)
Method to write output to datagram. |
Methods inherited from class org.apache.log.output.AbstractOutputTarget |
doProcessEvent, getFormatter, open |
Methods inherited from class org.apache.log.output.AbstractTarget |
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 DatagramOutputTarget(java.net.InetAddress address, int port, Formatter formatter, java.lang.String encoding) throws java.io.IOException
address
- the address endpointport
- the address portformatter
- the message formatterencoding
- the encoding to use when encoding string
java.io.IOException
- if an error occurspublic DatagramOutputTarget(java.net.InetAddress address, int port, Formatter formatter) throws java.io.IOException
address
- the address endpointport
- the address portformatter
- the message formatter
java.io.IOException
- if an error occurspublic DatagramOutputTarget(java.net.InetAddress address, int port) throws java.io.IOException
address
- the address endpointport
- the address port
java.io.IOException
- if an error occursMethod Detail |
protected void write(java.lang.String stringData)
write
in class AbstractOutputTarget
stringData
- the data to be outputpublic void close()
close
in interface Closeable
close
in class AbstractOutputTarget
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |