java.io.Closeable, java.io.Flushable, java.lang.AutoCloseable, FlushableCloseablepublic class UdpOutputStream extends java.io.OutputStream implements FlushableCloseable
DatagramSocket.| Constructor | Description |
|---|---|
UdpOutputStream(java.net.InetAddress address,
int port) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
|
void |
write(byte[] b) |
|
void |
write(byte[] b,
int off,
int len) |
|
void |
write(int b) |
public UdpOutputStream(java.net.InetAddress address,
int port)
throws java.io.IOException
java.io.IOExceptionpublic void write(int b)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void write(byte[] b)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void write(byte[] b,
int off,
int len)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.lang.AutoCloseableclose in interface java.io.Closeableclose in class java.io.OutputStreamjava.io.IOExceptionCopyright © 2018. All rights reserved.