Class SimpleByteArrayFactory

  • All Implemented Interfaces:
    ByteArrayFactory

    public class SimpleByteArrayFactory
    extends java.lang.Object
    implements ByteArrayFactory
    Creates ByteArray backed by a heap-allocated IoBuffer. The free method on returned ByteArrays 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 of ByteArray of size specified by the size parameter.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SimpleByteArrayFactory

        public SimpleByteArrayFactory()
        Creates a new instance of SimpleByteArrayFactory.
    • Method Detail

      • create

        public ByteArray create​(int size)
        Creates an instance of ByteArray of size specified by the size parameter.
        Specified by:
        create in interface ByteArrayFactory
        Parameters:
        size - The size of the ByteArray
        Returns:
        The ByteArray