public class Bin2Data
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Bin2Data.Args |
private static class |
Bin2Data.CmdLine |
static class |
Bin2Data.DescrData |
static class |
Bin2Data.DescrDataElement |
class |
Bin2Data.ZbnfResultDescr |
class |
Bin2Data.ZbnfResultDescrElement |
Modifier and Type | Field and Description |
---|---|
(package private) ByteDataAccessBase |
accData |
(package private) Bin2Data.Args |
args |
(package private) byte[] |
data |
(package private) Bin2Data.DescrData |
descrData |
static java.lang.String |
version
Version, history and license.
|
(package private) Bin2Data.ZbnfResultDescrElement |
zbnfElement |
Constructor and Description |
---|
Bin2Data() |
Bin2Data(Bin2Data.Args args) |
Modifier and Type | Method and Description |
---|---|
private float |
getFloat(int record,
Bin2Data.DescrDataElement descr,
ByteDataAccessBase accElement) |
float |
getFloat(int record,
java.lang.String name) |
int |
getIntegerHead(int pos,
int nrofBytes)
Returns a value from absolute position, e.g. in the head data of the file.
|
float[] |
getMinMidMaxFloat(int begin,
int end,
java.lang.String name)
Searches the minima and maxima and build the average from a value in range.
|
java.lang.String |
getStringHead(int pos,
int nrofBytes)
Returns a value from absolute position, e.g. in the head data of the file.
|
boolean |
loadBinary(java.io.File file,
boolean bigEndian)
Load the given file.
|
int |
nrofRecords()
Returns the number of records of the file.
|
boolean |
parseDescription() |
void |
readDescrSyntax() |
boolean |
setRecordStartLength(int start,
int length)
Sets the record structure information
|
public static final java.lang.String version
final Bin2Data.Args args
Bin2Data.DescrData descrData
Bin2Data.ZbnfResultDescrElement zbnfElement
byte[] data
ByteDataAccessBase accData
public Bin2Data(Bin2Data.Args args)
public Bin2Data()
public void readDescrSyntax()
public boolean parseDescription()
public boolean loadBinary(java.io.File file, boolean bigEndian)
file
- The file can have up to 2 wildcards ('*') in the name part. The first (usual only one) instance is used.
A file may start with a defined name but the rest of name may be unknown, for example designated with a time stamp.bigEndian
- public int getIntegerHead(int pos, int nrofBytes)
pos
- absolute positionnrofBytes
- 1,2,4 or -1, -2, -4 to read byte, short, int. Positive values: read unsigned.public java.lang.String getStringHead(int pos, int nrofBytes)
pos
- absolute positionnrofBytes
- 1,2,4 or -1, -2, -4 to read byte, short, int. Positive values: read unsigned.public boolean setRecordStartLength(int start, int length)
start
- length
- public int nrofRecords()
private float getFloat(int record, Bin2Data.DescrDataElement descr, ByteDataAccessBase accElement)
public float getFloat(int record, java.lang.String name)
public float[] getMinMidMaxFloat(int begin, int end, java.lang.String name)
begin
- start recordend
- exclusive end recordname
- variable