Closeable, Flushable, AutoCloseable, FlushableCloseablepublic class UdpOutputStream extends OutputStream implements FlushableCloseable
DatagramSocket.| Constructor | Description |
|---|---|
UdpOutputStream(InetAddress address,
int port) |
|
UdpOutputStream(ClientSocketFactory socketManager) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
|
void |
write(byte[] b) |
|
void |
write(byte[] b,
int off,
int len) |
|
void |
write(int b) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitflushpublic UdpOutputStream(InetAddress address, int port) throws IOException
IOExceptionpublic UdpOutputStream(ClientSocketFactory socketManager) throws SocketException
SocketExceptionpublic void write(int b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write in class OutputStreamIOExceptionpublic void close()
throws IOException
close in interface AutoCloseableclose in interface Closeableclose in class OutputStreamIOExceptionCopyright © 2019 JBoss by Red Hat. All rights reserved.