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 supplied
CompositeByteArray by the number of
bytes provided in the constructor-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionChunkedExpander(ByteArrayFactory baf, int newComponentSize) Creates a new ChunkedExpander instance -
Method Summary
Modifier and TypeMethodDescriptionvoidexpand(CompositeByteArray cba, int minSize) Expand a ByteBuffer by minSize bytes
-
Field Details
-
baf
-
newComponentSize
private final int newComponentSize
-
-
Constructor Details
-
ChunkedExpander
Creates a new ChunkedExpander instance- Parameters:
baf- The byte array factorynewComponentSize- The new size
-
-
Method Details
-
expand
Expand a ByteBuffer by minSize bytes- Specified by:
expandin interfaceCompositeByteArrayRelativeWriter.Expander- Parameters:
cba- The ByteBuffer to expandminSize- The new added size
-