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
CreatesByteArraybacked by a heap-allocatedIoBuffer. The free method on returnedByteArrays 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 ByteArraycreate(int size)Creates an instance ofByteArrayof size specified by the size parameter.
-
-
-
Method Detail
-
create
public ByteArray create(int size)
Creates an instance ofByteArrayof size specified by the size parameter.- Specified by:
createin interfaceByteArrayFactory- Parameters:
size- The size of the ByteArray- Returns:
- The ByteArray
-
-