Closeable, Flushable, AutoCloseablepublic class DatagramOutputStream extends OutputStream
| Modifier and Type | Field | Description |
|---|---|---|
protected static Logger |
LOGGER |
Allow subclasses access to the status logger without creating another instance.
|
| Constructor | Description |
|---|---|
DatagramOutputStream(String host,
int port,
byte[] header,
byte[] footer) |
The Constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
|
void |
flush() |
|
void |
write(byte[] bytes) |
|
void |
write(byte[] bytes,
int offset,
int length) |
|
void |
write(int i) |
protected static final Logger LOGGER
public DatagramOutputStream(String host, int port, byte[] header, byte[] footer)
host - The host to connect to.port - The port on the host.public void write(byte[] bytes,
int offset,
int length)
throws IOException
write in class OutputStreamIOExceptionpublic void write(int i)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] bytes)
throws IOException
write in class OutputStreamIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOExceptionpublic void close()
throws IOException
close in interface AutoCloseableclose in interface Closeableclose in class OutputStreamIOExceptionCopyright © 1999-2018. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.