private class MultiplexedSocket.InputStreamImpl extends InputStream
MultiplexedSocket.receive(java.net.DatagramPacket)
.Modifier and Type | Field and Description |
---|---|
private byte[] |
buf
A buffer to receive data into.
|
private DatagramPacket |
packet
A DatagramPacket instance to receive data into.
|
Constructor and Description |
---|
InputStreamImpl()
Initializes a new TCPInputStream.
|
Modifier and Type | Method and Description |
---|---|
int |
available() |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
void |
reset() |
long |
skip(long n) |
close, mark
private final byte[] buf
private final DatagramPacket packet
public int available()
available
in class InputStream
public boolean markSupported()
markSupported
in class InputStream
public int read() throws IOException
read
in class InputStream
IOException
public int read(byte[] b) throws IOException
read
in class InputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class InputStream
IOException
public void reset() throws IOException
reset
in class InputStream
IOException
public long skip(long n) throws IOException
skip
in class InputStream
IOException
Copyright © 2018. All rights reserved.