Modifier and Type | Field and Description |
---|---|
int |
num_
number of parallel streams.
|
Constructor and Description |
---|
PWriter(POutputStream parent,
OutputStream stream,
int pos,
int numwriters)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
run() |
void |
set(byte[] buf,
int off,
int length)
Set up total buffer to write for this parallel stream.
|
void |
writeData()
Writer writes to an output stream
|
public PWriter(POutputStream parent, OutputStream stream, int pos, int numwriters)
parent
- paralle stream containing this writer.stream
- real outputstream associated with this writer.pos
- position of this writer inside the parallel stream.numwriters
- total number of writers of this parallel stream.public void set(byte[] buf, int off, int length)
public void writeData() throws IOException
IOException
Copyright © 2010–2016 UNICORE. All rights reserved.