DatagramSocket.
| Modifier and Type | Field and Description |
|---|---|
| private final DatagramSocket | |
| private final SocketAddress |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Overrides java. Implements java. |
| public void | write(final int
the b)byte.Implements abstract java. |
| public void | write(final byte[]
the data. b)Overrides java. b.length bytes from the specified byte array
to this output stream.
|
| public void | write(final byte[]
the data. b, final int the start offset in the data. off, final int the number of bytes to write. len)Overrides java. len bytes from the specified byte array
starting at offset off to this output stream.
|
| socket | back to summary |
|---|---|
| private final DatagramSocket socket | |
| socketAddress | back to summary |
|---|---|
| private final SocketAddress socketAddress | |
| UdpOutputStream | back to summary |
|---|---|
| public UdpOutputStream(final InetAddress address, final int port) throws IOException | |
| UdpOutputStream | back to summary |
|---|---|
| public UdpOutputStream(final ClientSocketFactory socketManager) throws SocketException | |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides java. Implements java. Doc from java. Closes this resource, relinquishing any underlying resources.
This method is invoked automatically on objects managed by the
| |
| write | back to summary |
|---|---|
| public void write(final int b) throws IOException Implements abstract java. Doc from java. Writes the specified byte to this output stream. The general
contract for
| |
| write | back to summary |
|---|---|
| public void write(final byte[] b) throws IOException Overrides java. Doc from java. Writes
| |
| write | back to summary |
|---|---|
| public void write(final byte[] b, final int off, final int len) throws IOException Overrides java. Doc from java. Writes
If
If
| |