public class FloatBufferWrapper extends NumberBufferWrapper
Constructor and Description |
---|
FloatBufferWrapper(java.lang.String name,
BinaryChannel binaryChannel) |
FloatBufferWrapper(java.lang.String name,
BinaryChannel binaryChannel,
int numberOfValues) |
Modifier and Type | Method and Description |
---|---|
protected NumberBufferWrapper |
createSingleValueBufferWrapper() |
double |
getDoubleValue() |
double |
getDoubleValue(int index) |
protected java.nio.FloatBuffer |
getFloatBuffer() |
float |
getValue() |
float |
getValue(int index)
Returns the value at the given index.
|
float[] |
getValues()
Loads all float values into the buffer and returns them as an array.
|
void |
reset()
Clears the internal cache and forces the data to be re-read again on the next access.
|
getSingleValueBufferWrapper
getBinaryChannel, getByteBuffer, getByteOrder, getCapacity, getData, getEndPosition, getJavaDataType, getName, getNumberOfValues, getPredecessor, getReadOffset, getSize, getStartPosition, read, setPredecessor, setReadOffset
getLogChannel, isLogDebug, isLogVerbose, logDebug, logDump, logError, logError, logFatal, logInfo, logVerbose, logWarning, setLogChannel
configureDumpHeadlineLength, configureDumpMaxElementsPrinted, copyDumpStringValues, copyToStringValues, createDumpHeader, toDumpString, toDumpString, toString, toString
public FloatBufferWrapper(java.lang.String name, BinaryChannel binaryChannel)
public FloatBufferWrapper(java.lang.String name, BinaryChannel binaryChannel, int numberOfValues)
protected final java.nio.FloatBuffer getFloatBuffer() throws java.io.IOException
java.io.IOException
public final float getValue() throws java.io.IOException
java.io.IOException
public final float[] getValues() throws java.io.IOException
reset()
is called.java.io.IOException
public final float getValue(int index) throws java.io.IOException
getValues()
instead.java.io.IOException
public double getDoubleValue() throws java.io.IOException
getDoubleValue
in class NumberBufferWrapper
java.io.IOException
public double getDoubleValue(int index) throws java.io.IOException
getDoubleValue
in class NumberBufferWrapper
java.io.IOException
protected NumberBufferWrapper createSingleValueBufferWrapper()
createSingleValueBufferWrapper
in class NumberBufferWrapper
public void reset()
ByteBufferWrapper
reset
in interface Resettable
reset
in class NumberBufferWrapper
Copyright © 2014 EsprIT-Systems. All Rights Reserved.