Class DatagramOutputStream
java.lang.Object
java.io.OutputStream
org.apache.logging.log4j.core.net.DatagramOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
OutputStream for UDP connections.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDatagramOutputStream(String host, int port, byte[] header, byte[] footer) The Constructor. -
Method Summary
-
Field Details
-
LOGGER
Allow subclasses access to the status logger without creating another instance.
-
-
Constructor Details
-
DatagramOutputStream
The Constructor.- Parameters:
host- The host to connect to.port- The port on the host.
-
-
Method Details
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Specified by:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-