public class POutputStream extends OutputStream
Constructor and Description |
---|
POutputStream(OutputStream[] streams)
Default constructor Construct an empty parallel output stream.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this output stream and releases any system resources associated
with this stream.
|
boolean |
finished()
Check whether we are finished or not.
|
void |
flush()
Flushes this output stream and forces any buffered output bytes to be
written out.
|
int |
getSeq()
Return sequence number.
|
void |
write(byte[] b)
Writes b.length bytes from the specified byte array to this output
stream.
|
void |
write(byte[] b,
int off,
int len)
Writes len bytes from the specified byte array starting at offset off to
this output stream.
|
void |
write(int b)
Writes the specified byte to this output stream.
|
protected void |
writeParallel(byte[] b,
int off,
int len) |
void |
writerStatus(int pos,
boolean stat)
Update writer status by individual writer.
|
protected void |
writeSingleThreaded(byte[] b,
int off,
int len) |
public POutputStream(OutputStream[] streams)
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class OutputStream
IOException
public boolean finished()
public void writerStatus(int pos, boolean stat)
public void flush() throws IOException
flush
in interface Flushable
flush
in class OutputStream
IOException
public void write(int b) throws IOException
write
in class OutputStream
IOException
public void write(byte[] b) throws IOException
write
in class OutputStream
IOException
public void write(byte[] b, int off, int len) throws IOException
write
in class OutputStream
b
- - the data.off
- - the start offset in the data.len
- - the number of bytes to write.IOException
protected void writeParallel(byte[] b, int off, int len) throws IOException
IOException
protected void writeSingleThreaded(byte[] b, int off, int len) throws IOException
IOException
public int getSeq()
Copyright © 2010–2016 UNICORE. All rights reserved.