public interface ArrayInput
extends java.io.DataInput
DataInput
.
It adds methods for reading arrays of primitive values.Modifier and Type | Method and Description |
---|---|
boolean |
readBoolean() |
byte |
readByte() |
void |
readBytes(byte[] v)
Reads byte elements into a specified array.
|
void |
readBytes(byte[][] v)
Reads byte elements into a specified array.
|
void |
readBytes(byte[][][] v)
Reads byte elements into a specified array.
|
void |
readBytes(byte[] v,
int k,
int n)
Reads byte elements into a specified array.
|
char |
readChar() |
void |
readChars(char[] v)
Reads char elements into a specified array.
|
void |
readChars(char[][] v)
Reads char elements into a specified array.
|
void |
readChars(char[][][] v)
Reads char elements into a specified array.
|
void |
readChars(char[] v,
int k,
int n)
Reads char elements into a specified array.
|
double |
readDouble() |
void |
readDoubles(double[] v)
Reads double elements into a specified array.
|
void |
readDoubles(double[][] v)
Reads double elements into a specified array.
|
void |
readDoubles(double[][][] v)
Reads double elements into a specified array.
|
void |
readDoubles(double[] v,
int k,
int n)
Reads double elements into a specified array.
|
float |
readFloat() |
void |
readFloats(float[] v)
Reads float elements into a specified array.
|
void |
readFloats(float[][] v)
Reads float elements into a specified array.
|
void |
readFloats(float[][][] v)
Reads float elements into a specified array.
|
void |
readFloats(float[] v,
int k,
int n)
Reads float elements into a specified array.
|
void |
readFully(byte[] b) |
void |
readFully(byte[] b,
int off,
int len) |
int |
readInt() |
void |
readInts(int[] v)
Reads int elements into a specified array.
|
void |
readInts(int[][] v)
Reads int elements into a specified array.
|
void |
readInts(int[][][] v)
Reads int elements into a specified array.
|
void |
readInts(int[] v,
int k,
int n)
Reads int elements into a specified array.
|
java.lang.String |
readLine() |
long |
readLong() |
void |
readLongs(long[] v)
Reads long elements into a specified array.
|
void |
readLongs(long[][] v)
Reads long elements into a specified array.
|
void |
readLongs(long[][][] v)
Reads long elements into a specified array.
|
void |
readLongs(long[] v,
int k,
int n)
Reads long elements into a specified array.
|
short |
readShort() |
void |
readShorts(short[] v)
Reads short elements into a specified array.
|
void |
readShorts(short[][] v)
Reads short elements into a specified array.
|
void |
readShorts(short[][][] v)
Reads short elements into a specified array.
|
void |
readShorts(short[] v,
int k,
int n)
Reads short elements into a specified array.
|
int |
readUnsignedByte() |
int |
readUnsignedShort() |
java.lang.String |
readUTF() |
int |
skipBytes(int n) |
void readFully(byte[] b) throws java.io.IOException
readFully
in interface java.io.DataInput
java.io.IOException
void readFully(byte[] b, int off, int len) throws java.io.IOException
readFully
in interface java.io.DataInput
java.io.IOException
int skipBytes(int n) throws java.io.IOException
skipBytes
in interface java.io.DataInput
java.io.IOException
boolean readBoolean() throws java.io.IOException
readBoolean
in interface java.io.DataInput
java.io.IOException
byte readByte() throws java.io.IOException
readByte
in interface java.io.DataInput
java.io.IOException
int readUnsignedByte() throws java.io.IOException
readUnsignedByte
in interface java.io.DataInput
java.io.IOException
short readShort() throws java.io.IOException
readShort
in interface java.io.DataInput
java.io.IOException
int readUnsignedShort() throws java.io.IOException
readUnsignedShort
in interface java.io.DataInput
java.io.IOException
char readChar() throws java.io.IOException
readChar
in interface java.io.DataInput
java.io.IOException
int readInt() throws java.io.IOException
readInt
in interface java.io.DataInput
java.io.IOException
long readLong() throws java.io.IOException
readLong
in interface java.io.DataInput
java.io.IOException
float readFloat() throws java.io.IOException
readFloat
in interface java.io.DataInput
java.io.IOException
double readDouble() throws java.io.IOException
readDouble
in interface java.io.DataInput
java.io.IOException
java.lang.String readLine() throws java.io.IOException
readLine
in interface java.io.DataInput
java.io.IOException
java.lang.String readUTF() throws java.io.IOException
readUTF
in interface java.io.DataInput
java.io.IOException
void readBytes(byte[] v, int k, int n) throws java.io.IOException
v
- the array.k
- the index of the first element to read.n
- the number of elements to read.java.io.IOException
void readBytes(byte[] v) throws java.io.IOException
v
- the array.java.io.IOException
void readBytes(byte[][] v) throws java.io.IOException
v
- the array.java.io.IOException
void readBytes(byte[][][] v) throws java.io.IOException
v
- the array.java.io.IOException
void readChars(char[] v, int k, int n) throws java.io.IOException
v
- the array.k
- the index of the first element to read.n
- the number of elements to read.java.io.IOException
void readChars(char[] v) throws java.io.IOException
v
- the array.java.io.IOException
void readChars(char[][] v) throws java.io.IOException
v
- the array.java.io.IOException
void readChars(char[][][] v) throws java.io.IOException
v
- the array.java.io.IOException
void readShorts(short[] v, int k, int n) throws java.io.IOException
v
- the array.k
- the index of the first element to read.n
- the number of elements to read.java.io.IOException
void readShorts(short[] v) throws java.io.IOException
v
- the array.java.io.IOException
void readShorts(short[][] v) throws java.io.IOException
v
- the array.java.io.IOException
void readShorts(short[][][] v) throws java.io.IOException
v
- the array.java.io.IOException
void readInts(int[] v, int k, int n) throws java.io.IOException
v
- the array.k
- the index of the first element to read.n
- the number of elements to read.java.io.IOException
void readInts(int[] v) throws java.io.IOException
v
- the array.java.io.IOException
void readInts(int[][] v) throws java.io.IOException
v
- the array.java.io.IOException
void readInts(int[][][] v) throws java.io.IOException
v
- the array.java.io.IOException
void readLongs(long[] v, int k, int n) throws java.io.IOException
v
- the array.k
- the index of the first element to read.n
- the number of elements to read.java.io.IOException
void readLongs(long[] v) throws java.io.IOException
v
- the array.java.io.IOException
void readLongs(long[][] v) throws java.io.IOException
v
- the array.java.io.IOException
void readLongs(long[][][] v) throws java.io.IOException
v
- the array.java.io.IOException
void readFloats(float[] v, int k, int n) throws java.io.IOException
v
- the array.k
- the index of the first element to read.n
- the number of elements to read.java.io.IOException
void readFloats(float[] v) throws java.io.IOException
v
- the array.java.io.IOException
void readFloats(float[][] v) throws java.io.IOException
v
- the array.java.io.IOException
void readFloats(float[][][] v) throws java.io.IOException
v
- the array.java.io.IOException
void readDoubles(double[] v, int k, int n) throws java.io.IOException
v
- the array.k
- the index of the first element to read.n
- the number of elements to read.java.io.IOException
void readDoubles(double[] v) throws java.io.IOException
v
- the array.java.io.IOException
void readDoubles(double[][] v) throws java.io.IOException
v
- the array.java.io.IOException
void readDoubles(double[][][] v) throws java.io.IOException
v
- the array.java.io.IOException