public class ArrayAdapter
extends java.lang.Object
| Constructor and Description |
|---|
ArrayAdapter(int[] dimensions,
ElementType elementType)
Creates a new array adapter with given dimensions, a channel with the array data, and element
data type name.
|
ArrayAdapter(int[] dimensions,
java.nio.channels.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 |
|---|---|
void |
close() |
gov.nasa.pds.objectAccess.array.ArrayAdapter.MappedBuffer |
getBuf() |
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.
|
void |
open(java.nio.channels.SeekableByteChannel channel) |
public ArrayAdapter(int[] dimensions,
ElementType elementType)
dimensions - the array dimensionselementType - the element typepublic ArrayAdapter(int[] dimensions,
java.nio.channels.SeekableByteChannel channel,
ElementType elementType)
dimensions - the array dimensionschannel - the channel object containing the array dataelementType - the element typepublic int getElementSize()
public int getInt(int row,
int column)
throws java.io.IOException
row - the rowcolumn - the columnjava.io.IOException - an exceptionpublic long getLong(int row,
int column)
throws java.io.IOException
row - the rowcolumn - the columnjava.io.IOException - an exceptionpublic double getDouble(int row,
int column)
throws java.io.IOException
row - the rowcolumn - the columnjava.io.IOException - an exceptionpublic int getInt(int i1,
int i2,
int i3)
throws java.io.IOException
i1 - the first indexi2 - the second indexi3 - the third indexjava.io.IOException - an exceptionpublic long getLong(int i1,
int i2,
int i3)
throws java.io.IOException
i1 - the first indexi2 - the second indexi3 - the third indexjava.io.IOException - an exceptionpublic double getDouble(int i1,
int i2,
int i3)
throws java.io.IOException
i1 - the first indexi2 - the second indexi3 - the third indexjava.io.IOException - an exceptionpublic int getInt(int[] position)
throws java.io.IOException
position - the indices of the elementjava.io.IOException - an exceptionpublic long getLong(int[] position)
throws java.io.IOException
position - the indices of the elementjava.io.IOException - an exceptionpublic double getDouble(int[] position)
throws java.io.IOException
position - the indices of the elementjava.io.IOException - an exceptionpublic gov.nasa.pds.objectAccess.array.ArrayAdapter.MappedBuffer getBuf()
public void open(java.nio.channels.SeekableByteChannel channel)
public void close()
throws java.io.IOException
java.io.IOExceptionCopyright © 2023 Planetary Data System. All rights reserved.