|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.activemq.io.util.ByteArrayCompression
Compression stream
Field Summary | |
static int |
DEFAULT_COMPRESSION_LEVEL
Default compression level - 0 being none, 9 being best |
static int |
DEFAULT_COMPRESSION_LIMIT
Data size above which compression will be used |
static int |
DEFAULT_COMPRESSION_STRATEGY
Default Compression Strategy |
Constructor Summary | |
ByteArrayCompression()
|
Method Summary | |
ByteArray |
deflate(ByteArray ba)
Deflate the data in the ByteArray |
int |
getCompressionLevel()
|
int |
getCompressionLimit()
|
int |
getCompressionStrategy()
|
ByteArray |
inflate(ByteArray ba)
Inflate a ByteArray (if it contains compressed data) |
static boolean |
isCompressed(ByteArray ba)
test for compressed data |
void |
setCompressionLevel(int compressionLevel)
|
void |
setCompressionLimit(int compressionLimit)
|
void |
setCompressionStrategy(int compressionStrategy)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int DEFAULT_COMPRESSION_LIMIT
public static final int DEFAULT_COMPRESSION_LEVEL
public static final int DEFAULT_COMPRESSION_STRATEGY
Constructor Detail |
public ByteArrayCompression()
Method Detail |
public int getCompressionLevel()
public void setCompressionLevel(int compressionLevel)
compressionLevel
- The compressionLevel to set.public int getCompressionLimit()
public void setCompressionLimit(int compressionLimit)
compressionLimit
- The compressionLimit to set.public int getCompressionStrategy()
public void setCompressionStrategy(int compressionStrategy)
compressionStrategy
- The compressionStrategy to set.public static boolean isCompressed(ByteArray ba)
ba
-
public ByteArray deflate(ByteArray ba) throws IOException
ba
-
IOException
public ByteArray inflate(ByteArray ba) throws IOException
ba
-
IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |