public class DataBufferAdapterFactory extends Object
Data buffer adapters are used to apply a DataLayout to a buffer. Conceptually, they act
as a proxy that intercept each I/O call and perform the required type conversions after/before
delegating the task to the underlying buffer.
| Constructor and Description |
|---|
DataBufferAdapterFactory() |
| Modifier and Type | Method and Description |
|---|---|
static <S extends DataBuffer<?>> |
create(S buffer,
BooleanDataLayout<S> layout)
Creates an adapter that applies a boolean data layout to the given buffer.
|
static <S extends DataBuffer<?>> |
create(S buffer,
ByteDataLayout<S> layout)
Creates an adapter that applies a byte data layout to the given buffer.
|
static <S extends DataBuffer<?>,T> |
create(S buffer,
DataLayout<S,T> layout)
Creates an adapter that applies a data layout to the given buffer.
|
static <S extends DataBuffer<?>> |
create(S buffer,
DoubleDataLayout<S> layout)
Creates an adapter that applies a double data layout to the given buffer.
|
static <S extends DataBuffer<?>> |
create(S buffer,
FloatDataLayout<S> layout)
Creates an adapter that applies a float data layout to the given buffer.
|
static <S extends DataBuffer<?>> |
create(S buffer,
IntDataLayout<S> layout)
Creates an adapter that applies a integer data layout to the given buffer.
|
static <S extends DataBuffer<?>> |
create(S buffer,
LongDataLayout<S> layout)
Creates an adapter that applies a long data layout to the given buffer.
|
static <S extends DataBuffer<?>> |
create(S buffer,
ShortDataLayout<S> layout)
Creates an adapter that applies a short data layout to the given buffer.
|
public static <S extends DataBuffer<?>> ByteDataBuffer create(S buffer, ByteDataLayout<S> layout)
S - the type of the bufferbuffer - the delegate bufferlayout - layout to applypublic static <S extends DataBuffer<?>> BooleanDataBuffer create(S buffer, BooleanDataLayout<S> layout)
S - the type of the bufferbuffer - the delegate bufferlayout - layout to applypublic static <S extends DataBuffer<?>> DoubleDataBuffer create(S buffer, DoubleDataLayout<S> layout)
S - the type of the bufferbuffer - the delegate bufferlayout - layout to applypublic static <S extends DataBuffer<?>> FloatDataBuffer create(S buffer, FloatDataLayout<S> layout)
S - the type of the bufferbuffer - the delegate bufferlayout - layout to applypublic static <S extends DataBuffer<?>> IntDataBuffer create(S buffer, IntDataLayout<S> layout)
S - the type of the bufferbuffer - the delegate bufferlayout - layout to applypublic static <S extends DataBuffer<?>> LongDataBuffer create(S buffer, LongDataLayout<S> layout)
S - the type of the bufferbuffer - the delegate bufferlayout - layout to applypublic static <S extends DataBuffer<?>> ShortDataBuffer create(S buffer, ShortDataLayout<S> layout)
S - the type of the bufferbuffer - the delegate bufferlayout - layout to applypublic static <S extends DataBuffer<?>,T> DataBuffer<T> create(S buffer, DataLayout<S,T> layout)
S - the type of the bufferT - the type of data returned by the layoutbuffer - the delegate bufferlayout - layout to applyCopyright © 2015–2020. All rights reserved.