org.opcfoundation.ua.utils.bytebuffer
Class ByteBufferFactory

java.lang.Object
  extended by org.opcfoundation.ua.utils.bytebuffer.ByteBufferFactory
Direct Known Subclasses:
ChunkFactory

public abstract class ByteBufferFactory
extends Object

Abstract ByteBufferFactory class.

Author:
Toni Kalajainen (toni.kalajainen@vtt.fi)

Field Summary
static ByteBufferFactory BIG_ENDIAN_HEAP_BYTEBUFFER_FACTORY
          Constant BIG_ENDIAN_HEAP_BYTEBUFFER_FACTORY
static ByteBufferFactory DEFAULT_ENDIAN_HEAP_BYTEBUFFER_FACTORY
          Constant DEFAULT_ENDIAN_HEAP_BYTEBUFFER_FACTORY
static ByteBufferFactory LITTLE_ENDIAN_HEAP_BYTEBUFFER_FACTORY
          Constant LITTLE_ENDIAN_HEAP_BYTEBUFFER_FACTORY
 
Constructor Summary
ByteBufferFactory()
           
 
Method Summary
abstract  ByteBuffer allocate(int capacity)
          allocate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_ENDIAN_HEAP_BYTEBUFFER_FACTORY

public static final ByteBufferFactory DEFAULT_ENDIAN_HEAP_BYTEBUFFER_FACTORY
Constant DEFAULT_ENDIAN_HEAP_BYTEBUFFER_FACTORY


LITTLE_ENDIAN_HEAP_BYTEBUFFER_FACTORY

public static final ByteBufferFactory LITTLE_ENDIAN_HEAP_BYTEBUFFER_FACTORY
Constant LITTLE_ENDIAN_HEAP_BYTEBUFFER_FACTORY


BIG_ENDIAN_HEAP_BYTEBUFFER_FACTORY

public static final ByteBufferFactory BIG_ENDIAN_HEAP_BYTEBUFFER_FACTORY
Constant BIG_ENDIAN_HEAP_BYTEBUFFER_FACTORY

Constructor Detail

ByteBufferFactory

public ByteBufferFactory()
Method Detail

allocate

public abstract ByteBuffer allocate(int capacity)

allocate.

Parameters:
capacity - a int.
Returns:
a ByteBuffer object.


Copyright © 2018. All rights reserved.