public class OutStream extends PositionedOutputStream
Modifier and Type | Class and Description |
---|---|
static interface |
OutStream.OutputReceiver |
Modifier and Type | Field and Description |
---|---|
static int |
HEADER_SIZE |
Constructor and Description |
---|
OutStream(String name,
int bufferSize,
CompressionCodec codec,
OutStream.OutputReceiver receiver) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
void |
flush() |
long |
getBufferSize()
Get the memory size currently allocated as buffer associated with this
stream.
|
void |
getPosition(PositionRecorder recorder)
Record the current position to the recorder.
|
boolean |
isSuppressed()
Returns the state of suppress flag
|
void |
suppress()
Set suppress flag
|
String |
toString() |
void |
write(byte[] bytes,
int offset,
int length) |
void |
write(int i) |
close, write
public static final int HEADER_SIZE
public OutStream(String name, int bufferSize, CompressionCodec codec, OutStream.OutputReceiver receiver) throws IOException
IOException
public void clear() throws IOException
IOException
public void write(int i) throws IOException
write
in class OutputStream
IOException
public void write(byte[] bytes, int offset, int length) throws IOException
write
in class OutputStream
IOException
public void getPosition(PositionRecorder recorder) throws IOException
PositionedOutputStream
getPosition
in class PositionedOutputStream
recorder
- the object that receives the positionIOException
public void flush() throws IOException
flush
in interface Flushable
flush
in class OutputStream
IOException
public long getBufferSize()
PositionedOutputStream
getBufferSize
in class PositionedOutputStream
public void suppress()
public boolean isSuppressed()
Copyright © 2016 The Apache Software Foundation. All rights reserved.