|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.pds.label.object.DataObject
gov.nasa.pds.label.object.ArrayObject
public class ArrayObject
Implements an object representing an array object in a PDS product.
Constructor Summary | |
---|---|
ArrayObject(File parentDir,
File fileObject,
Array array,
long offset)
Creats a new array instance. |
Method Summary | |
---|---|
int |
getAxes()
Gets the number of dimensions. |
int[] |
getDimensions()
Gets the dimensions of the array. |
double |
getDouble(int[] position)
Gets an array element, as a double. |
double |
getDouble(int row,
int column)
Gets an element of a 2-D array, as a double. |
double |
getDouble(int i1,
int i2,
int i3)
Gets an element of a 3-D array, as a double. |
double[][] |
getElements2D()
Gets the entire 2-D array, as doubles. |
double[][][] |
getElements3D()
Gets the entire 3-D array, as doubles. |
int |
getElementSize()
Gets the size of an array element. |
int |
getInt(int[] position)
Gets an array element, as an int. |
int |
getInt(int row,
int column)
Gets an element of a 2-D array, as an int. |
int |
getInt(int i1,
int i2,
int i3)
Gets an element of a 3-D array, as an int. |
long |
getLong(int[] position)
Gets an array element, as a long. |
long |
getLong(int row,
int column)
Gets an element of a 2-D array, as a long. |
long |
getLong(int i1,
int i2,
int i3)
Gets an element of a 3-D array, as a long. |
boolean |
isImage()
Checks to see whether the array is an image. |
Methods inherited from class gov.nasa.pds.label.object.DataObject |
---|
getBuffer, getDataFile, getInputStream, getOffset, getSize, setSize |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ArrayObject(File parentDir, File fileObject, Array array, long offset) throws FileNotFoundException, IOException
parentDir
- the parent directory for the data filefileObject
- the file object metadataarray
- the array objectoffset
- the offset within the data file
IOException
- if there is an error opening the data file
FileNotFoundException
- if the data file is not foundMethod Detail |
---|
public int[] getDimensions()
public int getAxes()
public int getElementSize()
public int getInt(int row, int column)
row
- the rowcolumn
- the column
public long getLong(int row, int column)
row
- the rowcolumn
- the column
public double getDouble(int row, int column)
row
- the rowcolumn
- the column
public int getInt(int i1, int i2, int i3)
i1
- the first indexi2
- the second indexi3
- the third index
public long getLong(int i1, int i2, int i3)
i1
- the first indexi2
- the second indexi3
- the third index
public double getDouble(int i1, int i2, int i3)
i1
- the first indexi2
- the second indexi3
- the third index
public int getInt(int[] position)
position
- the indices of the element
public long getLong(int[] position)
position
- the indices of the element
public double getDouble(int[] position)
position
- the indices of the element
public double[][] getElements2D()
public double[][][] getElements3D()
public boolean isImage()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |