public class ArrayAdapter extends Object
Constructor and Description |
---|
ArrayAdapter(int[] dimensions,
SeekableByteChannel channel,
ElementType elementType)
Creates a new array adapter with given dimensions, a channel
with the array data, and element data type name.
|
Modifier and Type | Method and Description |
---|---|
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.
|
int |
getElementSize()
Gets the size of each 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.
|
public ArrayAdapter(int[] dimensions, SeekableByteChannel channel, ElementType elementType)
dimensions
- the array dimensionschannel
- the channel object containing the array dataelementType
- the elmeent typepublic int getElementSize()
public int getInt(int row, int column) throws IOException
row
- the rowcolumn
- the columnIOException
public long getLong(int row, int column) throws IOException
row
- the rowcolumn
- the columnIOException
public double getDouble(int row, int column) throws IOException
row
- the rowcolumn
- the columnIOException
public int getInt(int i1, int i2, int i3) throws IOException
i1
- the first indexi2
- the second indexi3
- the third indexIOException
public long getLong(int i1, int i2, int i3) throws IOException
i1
- the first indexi2
- the second indexi3
- the third indexIOException
public double getDouble(int i1, int i2, int i3) throws IOException
i1
- the first indexi2
- the second indexi3
- the third indexIOException
public int getInt(int[] position) throws IOException
position
- the indices of the elementIOException
public long getLong(int[] position) throws IOException
position
- the indices of the elementIOException
public double getDouble(int[] position) throws IOException
position
- the indices of the elementIOException
Copyright © 2010–2018 Planetary Data System. All rights reserved.