public interface AccessImpl
Modifier and Type | Method and Description |
---|---|
void |
close()
This method will be called when read/write access to this object
is no longer required.
|
void |
read(java.lang.Object buffer,
int start,
int size)
Reads a number of pixels from the current offset into
a specified part of a supplied java array.
|
void |
setOffset(long off)
Sets the offset into the array at which the next read/write will occur.
|
void |
write(java.lang.Object buffer,
int start,
int size)
Writes a number of pixels starting at the current offset from a
specified part of a supplied array.
|
void setOffset(long off) throws java.io.IOException
off
- the offset into the data arrayjava.io.IOException
void read(java.lang.Object buffer, int start, int size) throws java.io.IOException
buffer
- an array of the appropriate primitive type for this
NDArray into whose elements
start..start+size
the pixels will be
readstart
- the starting offset into array into which the
pixels should be readsize
- the number of pixels to read (also the amount by
which the current offset will be incremented)java.io.IOException
- if there is an I/O errorvoid write(java.lang.Object buffer, int start, int size) throws java.io.IOException
buffer
- an array of the appropriate primitive type for this
ArrayImpl whose elements start..start+size
will be written outstart
- the starting point in the array from which pixels
will be writtensize
- the number of pixels to write (also the amount by
which the current offset will be incremented)java.io.IOException
- if there is an I/O errorvoid close() throws java.io.IOException
This method will not be invoked more than once.
java.io.IOException
- if there is an I/O errorCopyright © 2017 Central Laboratory of the Research Councils. All Rights Reserved.