Class SimpleByteArrayFactory
java.lang.Object
org.apache.mina.util.byteaccess.SimpleByteArrayFactory
- All Implemented Interfaces:
ByteArrayFactory
Creates
ByteArray backed by a heap-allocated
IoBuffer. The free method on returned
ByteArrays is a nop.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SimpleByteArrayFactory
public SimpleByteArrayFactory()Creates a new instance of SimpleByteArrayFactory.
-
-
Method Details
-
create
Creates an instance ofByteArrayof size specified by the size parameter.- Specified by:
createin interfaceByteArrayFactory- Parameters:
size- The size of the ByteArray- Returns:
- The ByteArray
-