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
-
Constructor Summary
ConstructorDescriptionDatagramOutputStream
(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:
write
in classOutputStream
- Throws:
IOException
-
write
- Specified by:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
flush
- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classOutputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
-