Interface BufferFactory<T>
-
public interface BufferFactory<T>
Represents a factory to createBuffer
instances fromBufferFactory
instances.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Buffer
create(T value)
Creates a newBuffer
given aBufferFactory
instance.Buffer
wrap(ByteBuffer value)
Wraps a NIO buffer.
-
-
-
Method Detail
-
create
Buffer create(T value)
Creates a newBuffer
given aBufferFactory
instance.- Parameters:
value
-- Returns:
-
wrap
Buffer wrap(ByteBuffer value)
Wraps a NIO buffer.
-
-