public class DatagramOutputStream extends OutputStream
Modifier and Type | Field and Description |
---|---|
protected static org.apache.logging.log4j.Logger |
LOGGER
Allow subclasses access to the status logger without creating another instance.
|
Constructor and Description |
---|
DatagramOutputStream(String host,
int port,
byte[] header,
byte[] footer)
The Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
flush() |
void |
write(byte[] bytes) |
void |
write(byte[] bytes,
int offset,
int length) |
void |
write(int i) |
protected static final org.apache.logging.log4j.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 OutputStream
IOException
public void write(int i) throws IOException
write
in class OutputStream
IOException
public void write(byte[] bytes) throws IOException
write
in class OutputStream
IOException
public void flush() throws IOException
flush
in interface Flushable
flush
in class OutputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class OutputStream
IOException
Copyright © 1999-2019 The Apache Software Foundation. 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.