Package org.apache.mina.util.byteaccess
Class CompositeByteArrayRelativeWriter.ChunkedExpander
- java.lang.Object
-
- org.apache.mina.util.byteaccess.CompositeByteArrayRelativeWriter.ChunkedExpander
-
- All Implemented Interfaces:
CompositeByteArrayRelativeWriter.Expander
- Enclosing class:
- CompositeByteArrayRelativeWriter
public static class CompositeByteArrayRelativeWriter.ChunkedExpander extends Object implements CompositeByteArrayRelativeWriter.Expander
Expands the suppliedCompositeByteArrayby the number of bytes provided in the constructor
-
-
Constructor Summary
Constructors Constructor Description ChunkedExpander(ByteArrayFactory baf, int newComponentSize)Creates a new ChunkedExpander instance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexpand(CompositeByteArray cba, int minSize)Expand a ByteBuffer by minSize bytes
-
-
-
Constructor Detail
-
ChunkedExpander
public ChunkedExpander(ByteArrayFactory baf, int newComponentSize)
Creates a new ChunkedExpander instance- Parameters:
baf- The byte array factorynewComponentSize- The new size
-
-
Method Detail
-
expand
public void expand(CompositeByteArray cba, int minSize)
Expand a ByteBuffer by minSize bytes- Specified by:
expandin interfaceCompositeByteArrayRelativeWriter.Expander- Parameters:
cba- The ByteBuffer to expandminSize- The new added size
-
-