MCPcopy Create free account
hub / github.com/MinesJTK/jtk / ArrayInput

Interface ArrayInput

core/src/main/java/edu/mines/jtk/io/ArrayInput.java:27–248  ·  view source on GitHub ↗

An interface for reading arrays of primitive values from a binary stream. This interfaces extends the standard interface java.io.DataInput. It adds methods for reading arrays of primitive values. @author Dave Hale, Colorado School of Mines @version 2006.08.05

Source from the content-addressed store, hash-verified

25 * @version 2006.08.05
26 */
27public interface ArrayInput extends DataInput {
28
29 // From DataInput
30 public void readFully(byte[] b) throws IOException;
31 public void readFully(byte[] b, int off, int len) throws IOException;
32 public int skipBytes(int n) throws IOException;
33 public boolean readBoolean() throws IOException;
34 public byte readByte() throws IOException;
35 public int readUnsignedByte() throws IOException;
36 public short readShort() throws IOException;
37 public int readUnsignedShort() throws IOException;
38 public char readChar() throws IOException;
39 public int readInt() throws IOException;
40 public long readLong() throws IOException;
41 public float readFloat() throws IOException;
42 public double readDouble() throws IOException;
43 public String readLine() throws IOException;
44 public String readUTF() throws IOException;
45
46 /**
47 * Reads byte elements into a specified array.
48 * @param v the array.
49 * @param k the index of the first element to read.
50 * @param n the number of elements to read.
51 */
52 public void readBytes(byte[] v, int k, int n) throws IOException;
53
54 /**
55 * Reads byte elements into a specified array.
56 * The array length equals the number of elements to read.
57 * @param v the array.
58 */
59 public void readBytes(byte[] v) throws IOException;
60
61 /**
62 * Reads byte elements into a specified array.
63 * The array length equals the number of elements to read.
64 * @param v the array.
65 */
66 public void readBytes(byte[][] v) throws IOException;
67
68 /**
69 * Reads byte elements into a specified array.
70 * The array length equals the number of elements to read.
71 * @param v the array.
72 */
73 public void readBytes(byte[][][] v) throws IOException;
74
75 /**
76 * Reads char elements into a specified array.
77 * @param v the array.
78 * @param k the index of the first element to read.
79 * @param n the number of elements to read.
80 */
81 public void readChars(char[] v, int k, int n) throws IOException;
82
83 /**
84 * Reads char elements into a specified array.

Callers 76

readFullyMethod · 0.65
readFullyMethod · 0.65
readFullyMethod · 0.65
readCharsMethod · 0.65
readShortsMethod · 0.65
readIntsMethod · 0.65
readLongsMethod · 0.65
readFloatsMethod · 0.65
skipBytesMethod · 0.65
skipBytesMethod · 0.65
skipBytesMethod · 0.65
readObjectMethod · 0.65

Implementers 3

ArrayInputStreamcore/src/main/java/edu/mines/jtk/io/Ar
ArrayFilecore/src/main/java/edu/mines/jtk/io/Ar
ArrayInputAdaptercore/src/main/java/edu/mines/jtk/io/Ar

Calls

no outgoing calls

Tested by

no test coverage detected