org.activemq.io.util
Class ByteArrayFragmentation
java.lang.Object
org.activemq.io.util.ByteArrayFragmentation
- public class ByteArrayFragmentation
- extends Object
Compression stream
- Version:
- $Revision: 1.1.1.1 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_FRAGMENTATION_LIMIT
public static final int DEFAULT_FRAGMENTATION_LIMIT
- Data size above which fragmentation will be used
- See Also:
- Constant Field Values
ByteArrayFragmentation
public ByteArrayFragmentation()
getFragmentationLimit
public int getFragmentationLimit()
- Returns:
- Returns the fragmentationLimit.
setFragmentationLimit
public void setFragmentationLimit(int fragmentationLimit)
- Parameters:
fragmentationLimit
- The fragmentationLimit to set.
doFragmentation
public boolean doFragmentation(ByteArray ba)
- Parameters:
ba
-
- Returns:
- true if fragmentation will be applied
fragment
public ByteArray[] fragment(ByteArray ba)
- Fragment a ByteArray into a number of parts
- Parameters:
ba
-
- Returns:
assemble
public ByteArray assemble(ByteArray[] array)
- Assemble a ByteArray from an array of fragements
- Parameters:
array
-
- Returns:
Copyright © 2004-2007 Protique, Ltd.. All Rights Reserved.