public class RawFile
extends java.lang.Object
Constructor and Description |
---|
RawFile(int numPoints,
int numVars)
Constructs RawFile object.
|
Modifier and Type | Method and Description |
---|---|
void |
set(int iPoint,
int iVar,
double v)
Sets value of component of point.
|
void |
setVar(int iVar,
java.lang.String varName,
java.lang.String varType)
Defines name and type of component of vector.
|
void |
write(java.lang.String fileName)
Writes RawFile data to file in ascii format.
|
void |
writeBinary(java.lang.String fileName,
java.nio.ByteOrder byteOrder)
Writes RawFile data to file either in binary format.
|
public RawFile(int numPoints, int numVars)
numPoints
- number of points.numVars
- dimension of vectors..public void setVar(int iVar, java.lang.String varName, java.lang.String varType)
iVar
- index of component of vector.varName
- name of component of vector..varType
- type of component of vector..public void set(int iPoint, int iVar, double v)
iPoint
- index of point.iVar
- index of component of vector.v
- value of component of point.public void write(java.lang.String fileName)
fileName
- name of file.public void writeBinary(java.lang.String fileName, java.nio.ByteOrder byteOrder)
fileName
- name of file.byteOrder
- byte order, if null then native bute order of the underlying platform.