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
StorageException
public long getCurrentOffset()
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 offset, int length) throws IOException
write
in class OutputStream
IOException
public void flush()
flush
in interface Flushable
flush
in class OutputStream
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class OutputStream
IOException
public Accumulator<byte[]> accumulator() throws StorageException
Accumulable
accumulator
in interface Accumulable<byte[]>
Accumulator
StorageException
Copyright © 2015 The Apache Software Foundation. All rights reserved.