public class PInputStream extends InputStream
| Constructor and Description |
|---|
PInputStream(InputStream[] streams)
Default constructor Construct an empty parallel output stream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this input stream and releases any system resources associated
with the stream.
|
boolean |
finished()
Check whether we are finished or not.
|
int |
getSeq()
get sequence number.
|
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.
|
void |
readerStatus(int pos,
boolean stat,
int len)
Update reader status by individual reader.
|
protected int |
readMultiThreaded(byte[] b,
int off,
int length) |
void |
setSeq(int seq)
set sequence number.
|
available, mark, markSupported, reset, skippublic PInputStream(InputStream[] streams)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic void setSeq(int seq)
public int getSeq()
public int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b)
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b,
int off,
int length)
throws IOException
read in class InputStreamb - - the data.off - - the start offset in the data.len - - the maximum number of bytes to read.IOExceptionprotected int readMultiThreaded(byte[] b,
int off,
int length)
throws IOException
IOExceptionpublic void readerStatus(int pos,
boolean stat,
int len)
public boolean finished()
Copyright © 2010–2016 UNICORE. All rights reserved.