public static class CompositeByteArrayRelativeWriter.ChunkedExpander extends Object implements CompositeByteArrayRelativeWriter.Expander
CompositeByteArray
by the number of
bytes provided in the constructorConstructor and Description |
---|
ChunkedExpander(ByteArrayFactory baf,
int newComponentSize)
Creates a new ChunkedExpander instance
|
Modifier and Type | Method and Description |
---|---|
void |
expand(CompositeByteArray cba,
int minSize)
Expand a ByteBuffer by minSize bytes
|
public ChunkedExpander(ByteArrayFactory baf, int newComponentSize)
baf
- The byte array factorynewComponentSize
- The new sizepublic void expand(CompositeByteArray cba, int minSize)
expand
in interface CompositeByteArrayRelativeWriter.Expander
cba
- The ByteBuffer to expandminSize
- The new added sizeCopyright © 2004–2021 Apache MINA Project. All rights reserved.