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 offset,
int length) |
void |
write(int b) |
public FramingOutputStream(OutputStream o)
public void nextFrame() throws StorageException
StorageExceptionpublic 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 offset, 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 © 2015 The Apache Software Foundation. All rights reserved.