ByteArrayFactory
public class SimpleByteArrayFactory extends Object implements ByteArrayFactory
ByteArray
backed by a heap-allocated
IoBuffer
. The free method on returned
ByteArray
s is a nop.Constructor | Description |
---|---|
SimpleByteArrayFactory() |
Creates a new instance of SimpleByteArrayFactory.
|
Modifier and Type | Method | Description |
---|---|---|
ByteArray |
create(int size) |
Creates an instance of
ByteArray of size specified by the
size parameter. |
public SimpleByteArrayFactory()
public ByteArray create(int size)
ByteArray
of size specified by the
size parameter.create
in interface ByteArrayFactory
size
- The size of the ByteArrayCopyright © 2004–2018 Apache MINA Project. All rights reserved.