public abstract class CodecFactory extends Object
null
deflate
snappy
bzip2
addCodec(String,
CodecFactory)
.Constructor and Description |
---|
CodecFactory() |
Modifier and Type | Method and Description |
---|---|
static CodecFactory |
addCodec(String name,
CodecFactory c)
Adds a new codec implementation.
|
static CodecFactory |
bzip2Codec()
bzip2 codec.
|
protected abstract Codec |
createInstance()
Creates internal Codec.
|
static CodecFactory |
deflateCodec(int compressionLevel)
Deflate codec, with specific compression.
|
static CodecFactory |
fromString(String s)
Maps a codec name into a CodecFactory.
|
static CodecFactory |
nullCodec()
Null codec, for no compression.
|
static CodecFactory |
snappyCodec()
Snappy codec.
|
String |
toString() |
public static CodecFactory nullCodec()
public static CodecFactory deflateCodec(int compressionLevel)
public static CodecFactory snappyCodec()
public static CodecFactory bzip2Codec()
protected abstract Codec createInstance()
public static CodecFactory fromString(String s)
null
deflate
snappy
bzip2
public static CodecFactory addCodec(String name, CodecFactory c)
Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.