|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.InputStream
udt.UDTInputStream
public class UDTInputStream
The UDTInputStream receives data blocks from the UDTSocket
as they become available, and places them into an ordered,
bounded queue (the flow window) for reading by the application
| Nested Class Summary | |
|---|---|
static class |
UDTInputStream.AppData
used for storing application data and the associated sequence number in the queue in ascending order |
| Constructor Summary | |
|---|---|
UDTInputStream(UDTSocket socket)
create a new UDTInputStream connected to the given socket |
|
UDTInputStream(UDTSocket socket,
UDTStatistics statistics)
create a new UDTInputStream connected to the given socket |
|
| Method Summary | |
|---|---|
void |
close()
|
UDTSocket |
getSocket()
|
protected boolean |
haveNewData(long sequenceNumber,
byte[] data)
new application data |
protected void |
noMoreData()
notify the input stream that there is no more data |
int |
read()
|
int |
read(byte[] target)
|
int |
read(byte[] target,
int off,
int len)
|
void |
setBlocking(boolean block)
sets the blocking mode |
| Methods inherited from class java.io.InputStream |
|---|
available, mark, markSupported, reset, skip |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UDTInputStream(UDTSocket socket,
UDTStatistics statistics)
throws IOException
UDTInputStream connected to the given socket
socket - - the UDTSocketstatistics - - the UDTStatistics
IOException
public UDTInputStream(UDTSocket socket)
throws IOException
UDTInputStream connected to the given socket
socket - - the UDTSocket
IOException| Method Detail |
|---|
public int read()
throws IOException
read in class InputStreamIOException
public int read(byte[] target,
int off,
int len)
throws IOException
read in class InputStreamIOException
public int read(byte[] target)
throws IOException
read in class InputStreamIOException
protected boolean haveNewData(long sequenceNumber,
byte[] data)
throws IOException
data -
IOException
public void close()
throws IOException
close in interface Closeableclose in class InputStreamIOExceptionpublic UDTSocket getSocket()
public void setBlocking(boolean block)
block -
protected void noMoreData()
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||