public class OutStream extends PositionedOutputStream
| Modifier and Type | Field and Description |
|---|---|
static int |
HEADER_SIZE |
| Constructor and Description |
|---|
OutStream(String name,
int bufferSize,
CompressionCodec codec,
PhysicalWriter.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.
|
void |
suppress()
Set suppress flag
|
String |
toString() |
void |
write(byte[] bytes,
int offset,
int length) |
void |
write(int i) |
close, writepublic static final int HEADER_SIZE
public OutStream(String name, int bufferSize, CompressionCodec codec, PhysicalWriter.OutputReceiver receiver) throws IOException
IOExceptionpublic void clear()
throws IOException
IOExceptionpublic void write(int i)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] bytes,
int offset,
int length)
throws IOException
write in class OutputStreamIOExceptionpublic void getPosition(PositionRecorder recorder) throws IOException
PositionedOutputStreamgetPosition in class PositionedOutputStreamrecorder - the object that receives the positionIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOExceptionpublic long getBufferSize()
PositionedOutputStreamgetBufferSize in class PositionedOutputStreampublic void suppress()
Copyright © 2013–2018 The Apache Software Foundation. All rights reserved.