org.elasticsearch.common.compress.lzf
Class LZFCompressedStreamOutput
java.lang.Object
java.io.OutputStream
org.elasticsearch.common.io.stream.StreamOutput
org.elasticsearch.common.compress.CompressedStreamOutput<LZFCompressorContext>
org.elasticsearch.common.compress.lzf.LZFCompressedStreamOutput
- All Implemented Interfaces:
- Closeable, Flushable
public class LZFCompressedStreamOutput
- extends CompressedStreamOutput<LZFCompressorContext>
Methods inherited from class org.elasticsearch.common.io.stream.StreamOutput |
position, seek, seekPositionSupported, write, writeBoolean, writeBytes, writeBytes, writeBytesReference, writeDouble, writeFloat, writeGenericValue, writeInt, writeLong, writeMap, writeOptionalString, writeOptionalUTF, writeShort, writeString, writeStringArray, writeText, writeUTF, writeVInt, writeVLong |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LZFCompressedStreamOutput
public LZFCompressedStreamOutput(StreamOutput out)
throws IOException
- Throws:
IOException
writeHeader
public void writeHeader(StreamOutput out)
throws IOException
- Specified by:
writeHeader
in class CompressedStreamOutput<LZFCompressorContext>
- Throws:
IOException
compress
protected void compress(byte[] data,
int offset,
int len,
StreamOutput out)
throws IOException
- Description copied from class:
CompressedStreamOutput
- Compresses the data into the output
- Specified by:
compress
in class CompressedStreamOutput<LZFCompressorContext>
- Throws:
IOException
doClose
protected void doClose()
throws IOException
- Specified by:
doClose
in class CompressedStreamOutput<LZFCompressorContext>
- Throws:
IOException
Copyright © 2009-2012. All Rights Reserved.