public class FramingOutputStream extends OutputStream implements Accumulable<byte[]>
| Constructor and Description |
|---|
FramingOutputStream(OutputStream o) |
| Modifier and Type | Method and Description |
|---|---|
Accumulator<byte[]> |
accumulator()
Returns a new Accumulator.
|
void |
close() |
void |
flush() |
long |
getCurrentOffset() |
void |
nextFrame() |
void |
write(byte[] b) |
void |
write(byte[] b,
int offsetToWrite,
int length) |
void |
write(int b) |
public FramingOutputStream(OutputStream o)
public void nextFrame() throws IOException
IOExceptionpublic long getCurrentOffset()
public void write(int b) throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b) throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b, int offsetToWrite, int length) throws IOException
write in class OutputStreamIOExceptionpublic void flush()
flush in interface Flushableflush in class OutputStreampublic void close() throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionpublic Accumulator<byte[]> accumulator() throws StorageException
Accumulableaccumulator in interface Accumulable<byte[]>AccumulatorStorageExceptionCopyright © 2016 The Apache Software Foundation. All rights reserved.