public int readByte(byte[] buf) throws IOException, EOFException { return this.readByte(buf, 0, buf.length); }
public int readChar(char[] buf) throws IOException, EOFException { return this.readChar(buf, 0, buf.length); }
public int readDouble(double[] buf) throws IOException, EOFException { return this.readDouble(buf, 0, buf.length); }
public int readInt(int[] buf) throws IOException, EOFException { return this.readInt(buf, 0, buf.length); }
public int readLong(long[] buf) throws IOException, EOFException { return this.readLong(buf, 0, buf.length); }
public int readUnsignedByte(short[] buf) throws IOException, EOFException { return this.readUnsignedByte(buf, 0, buf.length); }
public int readUnsignedShort(int[] buf) throws IOException, EOFException { return this.readUnsignedShort(buf, 0, buf.length); }
public int readFloat(float[] buf) throws IOException, EOFException { return this.readFloat(buf, 0, buf.length); }
public int readShort(short[] buf) throws IOException, EOFException { return this.readShort(buf, 0, buf.length); }
public int readInt(int[] buf, int off, int len) throws IOException, EOFException { if (eos) { throw new EOFException(); } int i = 0; while (!eos && i < len) { try { // use DataInputStream.readInt() buf[i + off] = this.readInt(); i++; } catch (EOFException e) { eos = true; } } return i; }
public int readLong(long[] buf, int off, int len) throws IOException, EOFException { if (eos) { throw new EOFException(); } int i = 0; while (!eos && i < len) { try { // use DataInputStream.readLong() buf[i + off] = this.readLong(); i++; } catch (EOFException e) { eos = true; } } return i; }
public int readUnsignedByte(short[] buf, int off, int len) throws IOException, EOFException { if (eos) { throw new EOFException(); } int i = 0; while (!eos && i < len) { try { // int <- DataInputStream.readUnsignedByte() buf[i + off] = (short) this.readUnsignedByte(); i++; } catch (EOFException e) { eos = true; } } return i; }
public int readUnsignedShort(int[] buf, int off, int len) throws IOException, EOFException { if (eos) { throw new EOFException(); } int i = 0; while (!eos && i < len) { try { // use DataInputStream.readUnsignedShort() buf[i + off] = this.readUnsignedShort(); i++; } catch (EOFException e) { eos = true; } } return i; }
public int readFloat(float[] buf, int off, int len) throws IOException, EOFException { if (eos) { throw new EOFException(); } int i = 0; while (!eos && i < len) { try { // use DataInputStream.readFloat() buf[i + off] = this.readFloat(); i++; } catch (EOFException e) { eos = true; } } return i; }
public int readShort(short[] buf, int off, int len) throws IOException, EOFException { if (eos) { throw new EOFException(); } int i = 0; while (i < len && !eos) { try { // use DataInputStream.readShort() buf[i + off] = this.readShort(); //byte b1 = this.readByte(); //byte b2 = this.readByte(); //buf[i+off] = (short) ((short)(b1)<<8) | ((short)(b2) & 0xff); i++; } catch (EOFException e) { eos = true; } } return i; }
public int readChar(char[] buf, int off, int len) throws IOException, EOFException { if (eos) { throw new EOFException(); } int i = 0; while (!eos && i < len) { try { // use DataInputStream.readChar() buf[i + off] = this.readChar(); i++; } catch (EOFException e) { eos = true; } } return i; }
public int readDouble(double[] buf, int off, int len) throws IOException, EOFException { if (eos) { throw new EOFException(); } int i = 0; while (!eos && i < len) { try { // use DataInputStream.readDouble() buf[i + off] = this.readDouble(); i++; } catch (EOFException e) { eos = true; } } return i; } }
public int readByte(byte[] buf, int off, int len) throws IOException, EOFException { if (eos) { throw new EOFException(); } int i = 0; while (!eos && i < len) { try { // use DataInputStream.readByte() buf[i + off] = this.readByte(); i++; } catch (EOFException e) { eos = true; } } return i; }