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 columnIOExceptionpublic long getLong(int row,
int column)
throws IOException
row - the rowcolumn - the columnIOExceptionpublic double getDouble(int row,
int column)
throws IOException
row - the rowcolumn - the columnIOExceptionpublic int getInt(int i1,
int i2,
int i3)
throws IOException
i1 - the first indexi2 - the second indexi3 - the third indexIOExceptionpublic long getLong(int i1,
int i2,
int i3)
throws IOException
i1 - the first indexi2 - the second indexi3 - the third indexIOExceptionpublic double getDouble(int i1,
int i2,
int i3)
throws IOException
i1 - the first indexi2 - the second indexi3 - the third indexIOExceptionpublic int getInt(int[] position)
throws IOException
position - the indices of the elementIOExceptionpublic long getLong(int[] position)
throws IOException
position - the indices of the elementIOExceptionpublic double getDouble(int[] position)
throws IOException
position - the indices of the elementIOExceptionCopyright © 2019. All rights reserved.