org.apache.log.output.net
public class DatagramOutputTarget extends AbstractOutputTarget
Field Summary | |
---|---|
static String | DEFAULT_ENCODING |
String | m_encoding |
DatagramSocket | m_socket |
Constructor Summary | |
---|---|
DatagramOutputTarget(InetAddress address, int port, Formatter formatter, String encoding)
Create a output target with end point specified by address and port.
| |
DatagramOutputTarget(InetAddress address, int port, Formatter formatter)
Create a output target with end point specified by address and port.
| |
DatagramOutputTarget(InetAddress address, int port)
Create a output target with end point specified by address and port.
|
Method Summary | |
---|---|
void | close()
Shutdown target.
|
protected void | write(String stringData)
Method to write output to datagram.
|
Parameters: address the address endpoint port the address port formatter the message formatter encoding the encoding to use when encoding string
Throws: IOException if an error occurs
Parameters: address the address endpoint port the address port formatter the message formatter
Throws: IOException if an error occurs
Parameters: address the address endpoint port the address port
Throws: IOException if an error occurs
Parameters: stringData the data to be output