ParallelFilteredProcessorRunner.Writer<byte[]>
, java.io.Closeable
, java.lang.AutoCloseable
public class ByteWriter extends java.lang.Object implements ParallelFilteredProcessorRunner.Writer<byte[]>
Note that this class does not perform any kind of line termination. It is up to the
ParallelFilteredProcessorRunner.Processor
to provide line-terminated streams of bytes, if necessary.
Modifier and Type | Method | Description |
---|---|---|
void |
close() |
|
static ByteWriter |
getInstance() |
|
void |
write(byte[] b,
long storePosition,
java.io.PrintStream out) |
public static ByteWriter getInstance()
public void write(byte[] b, long storePosition, java.io.PrintStream out) throws java.io.IOException
write
in interface ParallelFilteredProcessorRunner.Writer<byte[]>
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.lang.AutoCloseable
close
in interface java.io.Closeable
java.io.IOException