|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.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 occurs
public 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 occurs
public DatagramOutputTarget(java.net.InetAddress address,
int port)
throws java.io.IOException
address - the address endpointport - the address port
java.io.IOException - if an error occurs| Method Detail |
protected void write(java.lang.String stringData)
write in class AbstractOutputTargetstringData - the data to be outputpublic void close()
close in interface Closeableclose in class AbstractOutputTarget
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||