public class IntBufferWrapper extends NumberBufferWrapper
| Constructor and Description |
|---|
IntBufferWrapper(java.lang.String name,
BinaryChannel binaryChannel) |
IntBufferWrapper(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.IntBuffer |
getIntBuffer() |
int |
getValue()
Loads all values into the buffer and returns the first one.
|
int |
getValue(int index)
Returns the value at the given index.
|
int[] |
getValues()
Loads all 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.
|
getSingleValueBufferWrappergetBinaryChannel, getByteBuffer, getByteOrder, getCapacity, getData, getEndPosition, getJavaDataType, getName, getNumberOfValues, getPredecessor, getReadOffset, getSize, getStartPosition, read, setPredecessor, setReadOffsetgetLogChannel, isLogDebug, isLogVerbose, logDebug, logDump, logError, logError, logFatal, logInfo, logVerbose, logWarning, setLogChannelconfigureDumpHeadlineLength, configureDumpMaxElementsPrinted, copyDumpStringValues, copyToStringValues, createDumpHeader, toDumpString, toDumpString, toString, toStringpublic IntBufferWrapper(java.lang.String name,
BinaryChannel binaryChannel)
public IntBufferWrapper(java.lang.String name,
BinaryChannel binaryChannel,
int numberOfValues)
protected final java.nio.IntBuffer getIntBuffer()
throws java.io.IOException
java.io.IOExceptionpublic final int getValue()
throws java.io.IOException
reset()
is called.java.io.IOExceptionpublic final int[] getValues()
throws java.io.IOException
reset() is called.java.io.IOExceptionpublic final int getValue(int index)
throws java.io.IOException
getValues() instead.java.io.IOExceptionpublic double getDoubleValue()
throws java.io.IOException
getDoubleValue in class NumberBufferWrapperjava.io.IOExceptionpublic double getDoubleValue(int index)
throws java.io.IOException
getDoubleValue in class NumberBufferWrapperjava.io.IOExceptionprotected NumberBufferWrapper createSingleValueBufferWrapper()
createSingleValueBufferWrapper in class NumberBufferWrapperpublic void reset()
ByteBufferWrapperreset in interface Resettablereset in class NumberBufferWrapperCopyright © 2014 EsprIT-Systems. All Rights Reserved.