Package org.apache.mina.util.byteaccess
Class SimpleByteArrayFactory
- java.lang.Object
-
- org.apache.mina.util.byteaccess.SimpleByteArrayFactory
-
- All Implemented Interfaces:
ByteArrayFactory
public class SimpleByteArrayFactory extends Object implements ByteArrayFactory
CreatesByteArray
backed by a heap-allocatedIoBuffer
. The free method on returnedByteArray
s is a nop.- Author:
- Apache MINA Project
-
-
Constructor Summary
Constructors Constructor Description SimpleByteArrayFactory()
Creates a new instance of SimpleByteArrayFactory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ByteArray
create(int size)
Creates an instance ofByteArray
of size specified by the size parameter.
-
-
-
Method Detail
-
create
public ByteArray create(int size)
Creates an instance ofByteArray
of size specified by the size parameter.- Specified by:
create
in interfaceByteArrayFactory
- Parameters:
size
- The size of the ByteArray- Returns:
- The ByteArray
-
-