public class DecompressedData extends java.lang.Object implements B1000Types
Modifier and Type | Field and Description |
---|---|
protected double[] |
dData
holds a temp double array of the data elements.
|
protected float[] |
fData
holds a temp float array of the data elements.
|
protected int[] |
iData
holds a temp int array of the data elements.
|
protected short[] |
sData
holds a temp short array of the data elements.
|
Constructor and Description |
---|
DecompressedData(double[] data) |
DecompressedData(float[] data) |
DecompressedData(int[] data) |
DecompressedData(short[] data) |
Modifier and Type | Method and Description |
---|---|
double[] |
getAsDouble()
Converts the data to a double array if possible without loss.
|
float[] |
getAsFloat()
Converts the data to a float array if possible without loss.
|
int[] |
getAsInt()
Converts the data to an int array if possible without loss.
|
short[] |
getAsShort()
Converts the data to a short array if possible without loss.
|
int |
getType()
returns an integer that represent the java primitive that the data
decompresses to.
|
java.lang.String |
getTypeString()
returns a string version of the type for printing in error messages.
|
protected int[] iData
protected short[] sData
protected float[] fData
protected double[] dData
public DecompressedData(int[] data)
public DecompressedData(short[] data)
public DecompressedData(float[] data)
public DecompressedData(double[] data)
public int getType()
for the values.
,
for the seed manual, blockette 1000, that defines these values.
public java.lang.String getTypeString()
public int[] getAsInt()
public short[] getAsShort()
public float[] getAsFloat()
public double[] getAsDouble()