readBytes
public void readBytes(IIOByteBuffer buf,
int numBytes)
throws IOException
Reads up to a specified number of bytes, and modifies a
IIOByteBuffer
to hold the read data.
The
bit offset is set to zero
before any data is read.
buf
- an IIOByteBuffer
that will hold the read
data.numBytes
- the maximum number of bytes to read.
readFully
public void readFully(byte[] b)
throws IOException
Reads a sequence of signed 8-bit integers into a
byte[]
array.
The
bit offset is set to zero
before any data is read.
- readFully in interface DataInput
b
- an array for storing the read values.
readFully
public void readFully(byte[] b,
int offset,
int numBytes)
throws IOException
Reads a sequence of signed 8-bit integers into a
byte[]
array.
The
bit offset is set to zero
before any data is read.
- readFully in interface DataInput
b
- an array for storing the read values.offset
- the index of the first element in b
that will hold read data.numBytes
- the number of bytes to read.
readFully
public void readFully(char[] c,
int offset,
int numChars)
throws IOException
Reads a sequence of unsigned 16-bit integers into a
char[]
array. If necessary, values are converted
from the stream’s
current byte
order.
The
bit offset is set to zero
before any data is read.
c
- an array for storing the read values.offset
- the index of the first element in c
that will hold read data.numChars
- the number of unsigned 16-bit integers to read
(which is one half of the number of bytes).
readFully
public void readFully(double[] d,
int offset,
int numDoubles)
throws IOException
Reads a sequence of IEEE 64-bit double-precision floating point
numbers into a
double[]
array. If necessary, values
are converted from the stream’s
current byte order.
The
bit offset is set to zero
before any data is read.
d
- an array for storing the read values.offset
- the index of the first element in d
that will hold read data.numDoubles
- the number of IEEE 64-bit double-precision
floating point numbers to read (which is one eight of the number
of bytes).
readFully
public void readFully(float[] f,
int offset,
int numFloats)
throws IOException
Reads a sequence of IEEE 32-bit single-precision floating point
numbers into a
float[]
array. If necessary, values
are converted from the stream’s
current byte order.
The
bit offset is set to zero
before any data is read.
offset
- the index of the first element in d
that will hold read data.numFloats
- the number of IEEE 32-bit single-precision
floating point numbers to read (which is one fourth of the number
of bytes).
readFully
public void readFully(int[] i,
int offset,
int numInts)
throws IOException
Reads a sequence of signed 32-bit integers into a
long[]
array. If necessary, values are converted
from the stream’s
current byte
order.
The
bit offset is set to zero
before any data is read.
i
- an array for storing the read values.offset
- the index of the first element in i
that will hold read data.numInts
- the number of signed 32-bit integers to read
(which is one fourth of the number of bytes).
readFully
public void readFully(long[] l,
int offset,
int numLongs)
throws IOException
Reads a sequence of signed 64-bit integers into a
long[]
array. If necessary, values are converted
from the stream’s
current byte
order.
The
bit offset is set to zero
before any data is read.
l
- an array for storing the read values.offset
- the index of the first element in l
that will hold read data.numLongs
- the number of signed 64-bit integers to read
(which is one eight of the number of bytes).
readFully
public void readFully(short[] s,
int offset,
int numShorts)
throws IOException
Reads a sequence of signed 16-bit integers into a
short[]
array. If necessary, values are converted
from the stream’s
current byte
order.
The
bit offset is set to zero
before any data is read.
s
- an array for storing the read values.offset
- the index of the first element in s
that will hold read data.numShorts
- the number of signed 16-bit integers to read
(which is one half of the number of bytes).
ImageInputStream.java
Copyright (C) 2004, 2005 Free Software Foundation, Inc.
This file is part of GNU Classpath.
GNU Classpath is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
GNU Classpath is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with GNU Classpath; see the file COPYING. If not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301 USA.
Linking this library statically or dynamically with other modules is
making a combined work based on this library. Thus, the terms and
conditions of the GNU General Public License cover the whole
combination.
As a special exception, the copyright holders of this library give you
permission to link this library with independent modules to produce an
executable, regardless of the license terms of these independent
modules, and to copy and distribute the resulting executable under
terms of your choice, provided that you also meet, for each linked
independent module, the terms and conditions of the license of that
module. An independent module is a module which is not derived from
or based on this library. If you modify this library, you may extend
this exception to your version of the library, but you are not
obligated to do so. If you do not wish to do so, delete this
exception statement from your version.