Package org.jmxtrans.embedded.util.net
Class UDPDatagramWriter
java.lang.Object
java.io.Writer
org.jmxtrans.embedded.util.net.UDPDatagramWriter
- All Implemented Interfaces:
Closeable,Flushable,Appendable,AutoCloseable
public class UDPDatagramWriter extends Writer
Convenience class for writing characters to a UDP DatagramChannel.
- Author:
- Patrick Brühlmann
-
Field Summary
-
Constructor Summary
Constructors Constructor Description UDPDatagramWriter(DatagramSocket datagramSocket, Charset charset) -
Method Summary
-
Constructor Details
-
UDPDatagramWriter
-
-
Method Details
-
write
- Specified by:
writein classWriter- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Specified by:
flushin classWriter- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classWriter- Throws:
IOException
-