public abstract class CodecFactory extends Object
null
deflate
snappy
bzip2
addCodec(String,
CodecFactory)
.Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_DEFLATE_LEVEL |
static int |
DEFAULT_XZ_LEVEL |
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() |
static CodecFactory |
xzCodec(int compressionLevel)
XZ codec, with specific compression.
|
public static final int DEFAULT_DEFLATE_LEVEL
public static final int DEFAULT_XZ_LEVEL
public static CodecFactory nullCodec()
public static CodecFactory deflateCodec(int compressionLevel)
public static CodecFactory xzCodec(int compressionLevel)
public static CodecFactory snappyCodec()
public static CodecFactory bzip2Codec()
protected abstract Codec createInstance()
public static CodecFactory fromString(String s)
null
deflate
snappy
bzip2
xz
public static CodecFactory addCodec(String name, CodecFactory c)
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.