ArrayIO Library
Library Description
This Java utility library provides methods to read and write arrays from and to data files, hiding
from the programmer the details of the particular file format used.
When complete, this library will allow a (programmer) user to read arrays
from an input file, or byte stream, without having to know the particular file
format.
When finished, the library will
- recognize the file format
- determine if it matches an user supplied conditions (e.g. dimensionality, file format type,..)
- provide the data values to the user program
The library does not currently automatically recognize the input file format.
Supporting Documents
Supported File formats
These are the formats currently supported by the ArrayIO library
Ascii Matrix
this is a simple text file format it contains either:
- comment lines, beginning with a '#' character
- matrix row lines, containing ascii encoded numbers, separated by white space
Ascii Matrix Example:
0.926915 -0.00555646 0.00343901 8.5602
0.00537576 0.898947 0.00352094 7.22592
-0.00380805 -0.00397254 1.02016 -1.90323
0 0 0 1
RDD file format
The Regular Discrete Data format file,(RDD) version 1.0, has these sections:
Identifer String
In Version 1.0 these are "RDDF"
Data Precision Identifer
A single character, indentifying the data precision.
this character is either "f" or "d", signifying float, or double precision
numbers in the data sample section of the file.
number of data dimensions
an integer defining the number of dimensions of the data values.
a description of the data samples - not yet completed
the data values - web entry not completed