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, suspendChangeManagerclone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetNativeDatatype, getNativeValues, getNativeValues, getValueAt, setValueAtpublic 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.FileNotFoundExceptionjava.io.IOExceptionpublic java.lang.String getVersion()
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwablepublic void release()
release in interface FwkColumnDataObserverInterfacerelease in class FwkColumnDataObserverpublic void releaseFile()
public void setFlagAt(int index,
short flag)
setFlagAt in interface FwkColumnDataObserverInterfacesetFlagAt in class FwkColumnDataObserverindex - the index of the flag to changed.flag - the new flag.FwkColumnAccessInterfacepublic 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.Exceptionpublic static void main(java.lang.String[] args)