|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.InputStream
cgl.narada.transport.ptcp.psocket.PTCPInputStream
public class PTCPInputStream
| Field Summary | |
|---|---|
PTCPBuffer |
buffer_
|
| Fields inherited from interface cgl.narada.transport.ptcp.psocket.tools.PTCPParameters |
|---|
COMM_SOCKET, DATA_SOCKET, PTCPBuffer_Debug, PTCPDataFragmentator_Debug, PTCPInputStream_Debug, PTCPOutputStream_Debug, PTCPPacket_Debug, PTCPReceiverWorker_Debug, PTCPSenderWorker_Debug, PTCPServerSocket_Debug, PTCPSocket_Debug, PTCPSocketInfo_Debug |
| Constructor Summary | |
|---|---|
PTCPInputStream(InputStream[] streams)
Default constructor Construct an empty parallel input stream. |
|
PTCPInputStream(InputStream[] streams,
boolean incPrf)
Default constructor Construct an empty parallel input stream with performance increase option |
|
| Method Summary | |
|---|---|
void |
close()
Closes this input stream and releases any system resources associated with the stream. |
boolean |
finished()
|
int |
getPacketSize()
|
long |
getTxEndTime()
|
int |
read()
Reads the next byte of data from the input stream. |
int |
read(byte[] b)
Reads some number of bytes from the input stream and stores them into the buffer array b. |
int |
read(byte[] b,
int off,
int length)
Reads up to len bytes of data from the input stream into an array of bytes. |
byte[] |
receive()
|
void |
setTxEndTime(long txEndTime)
|
| 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 |
| Field Detail |
|---|
public PTCPBuffer buffer_
| Constructor Detail |
|---|
public PTCPInputStream(InputStream[] streams)
public PTCPInputStream(InputStream[] streams,
boolean incPrf)
| Method Detail |
|---|
public void setTxEndTime(long txEndTime)
public long getTxEndTime()
public void close()
throws IOException
close in interface Closeableclose in class InputStreamIOExceptionpublic boolean finished()
public int read()
throws IOException
read in class InputStreamIOException
public int read(byte[] b)
throws IOException
read in class InputStreamIOException
public int read(byte[] b,
int off,
int length)
throws IOException
read in class InputStreamb - - the data.off - - the start offset in the data.length - - the maximum number of bytes to read.
IOException
public byte[] receive()
throws InterruptedException
InterruptedExceptionpublic int getPacketSize()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||