public class ERGCharDataObserver extends ERGDataObserver
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
version |
buffer, file, fileChannel, fileSpec, mappedByteBuffer
changeManager, flags, globalFlag, globalFlagValid, suspended
Constructor and Description |
---|
ERGCharDataObserver(UBHInterface ubh,
int signal,
java.lang.String fileSpec)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
createBuffer()
create the reading buffer.
|
int |
getDataSizeInByte()
get the size of one item in bytes.
|
java.lang.Class |
getNativeDatatype()
Get the data type of inner values.
|
protected byte |
getNativeValueAt(int index) |
java.lang.Object |
getNativeValues()
Get the inner values.
|
java.lang.Object |
getNativeValues(int lower,
int upper)
Get a range of the inner values.
|
double |
getValueAt(int index)
Get value
|
java.lang.String |
getVersion() |
void |
setValueAt(int index,
double value)
Set a value
|
finalize, getCount, initializeFile, main, release, releaseFile, seek, setFlagAt
addDataItemChangeListener, createScale, getFlagAt, getScale, isChangeManagerSuspended, isImplicit, removeDataItemChangeListener, setScale, suspendChangeManager
public static final java.lang.String version
public ERGCharDataObserver(UBHInterface ubh, int signal, java.lang.String fileSpec) throws java.io.FileNotFoundException, java.io.IOException
ubh
- The universal binary header.signal
- the signal number.fileSpec
- the file specification.java.io.FileNotFoundException
java.io.IOException
public java.lang.String getVersion()
getVersion
in class ERGDataObserver
protected void createBuffer()
createBuffer
in class ERGDataObserver
public int getDataSizeInByte()
getDataSizeInByte
in class ERGDataObserver
public double getValueAt(int index) throws java.lang.RuntimeException
index
- The index of the value.java.lang.RuntimeException
protected byte getNativeValueAt(int index) throws java.lang.RuntimeException
java.lang.RuntimeException
public void setValueAt(int index, double value) throws java.lang.RuntimeException
index
- the index of the value to changed.value
- the new value.java.lang.RuntimeException
public java.lang.Class getNativeDatatype()
public java.lang.Object getNativeValues()
public java.lang.Object getNativeValues(int lower, int upper)
lower
- the lower index of the range of interest.upper
- the upper index of the range of interest.