public abstract class ERGDataObserver extends FwkColumnDataObserver
Modifier and Type | Field and Description |
---|---|
protected java.nio.Buffer |
buffer |
protected java.io.RandomAccessFile |
file |
protected java.nio.channels.FileChannel |
fileChannel |
protected java.lang.String |
fileSpec |
protected java.nio.MappedByteBuffer |
mappedByteBuffer |
static java.lang.String |
version |
changeManager, flags, globalFlag, globalFlagValid, suspended
Constructor and Description |
---|
ERGDataObserver(UBHInterface ubh,
int signal,
java.lang.String fileSpec)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
protected abstract void |
createBuffer()
create the reading buffer.
|
protected void |
finalize() |
int |
getCount()
The the value count.
|
abstract int |
getDataSizeInByte()
get the size of one item in bytes.
|
java.lang.String |
getVersion() |
void |
initializeFile()
Get a data value.
|
static void |
main(java.lang.String[] args)
Main module of this application.
|
void |
release()
Request to release data.
|
void |
releaseFile()
Release the file.
|
protected int |
seek(int index)
Seek to the position of the current index.
|
void |
setFlagAt(int index,
short flag)
Set a flag
|
addDataItemChangeListener, createScale, getFlagAt, getScale, isChangeManagerSuspended, isImplicit, removeDataItemChangeListener, setScale, suspendChangeManager
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getNativeDatatype, getNativeValues, getNativeValues, getValueAt, setValueAt
public static final java.lang.String version
protected java.io.RandomAccessFile file
protected java.nio.channels.FileChannel fileChannel
protected java.nio.MappedByteBuffer mappedByteBuffer
protected java.nio.Buffer buffer
protected java.lang.String fileSpec
public ERGDataObserver(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()
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public void release()
release
in interface FwkColumnDataObserverInterface
release
in class FwkColumnDataObserver
public void releaseFile()
public void setFlagAt(int index, short flag)
setFlagAt
in interface FwkColumnDataObserverInterface
setFlagAt
in class FwkColumnDataObserver
index
- the index of the flag to changed.flag
- the new flag.FwkColumnAccessInterface
public int getCount()
public void initializeFile()
index
- The index of the value.public abstract int getDataSizeInByte()
protected abstract void createBuffer()
protected int seek(int index) throws java.lang.Exception
index
- The index of the value.java.lang.Exception
public static void main(java.lang.String[] args)