/** * Sets the size increment between reporting events. Listeners * are notified if more than numbytes have been read from the * stream so far. */ public void setReportSize(int numbytes) { bytes = getByteCount(); blocks = 0; reportSize = numbytes; doit(); // recompute blocks and bytes }
/** * Sets the size increment between reporting events. Listeners * are notified if more than numbytes have been written so far. */ public void setReportSize(int numbytes) { bytes = getByteCount(); blocks = 0; reportSize = numbytes; doit(); // recompute blocks and bytes }
public void writeUnsignedShort(int[] buf, int off, int len) throws IOException { int i = 0; while (i < off + len) { this.writeUnsignedShort(buf[i + off]); i++; } }
public void writeLong(long[] buf) throws IOException { this.writeLong(buf, 0, buf.length); }
public void writeChar(char[] buf) throws IOException { this.writeChar(buf, 0, buf.length); }
public void writeUnsignedByte(short i) throws IOException { this.writeByte(i + Byte.MIN_VALUE); }
public int readChar(char[] buf) throws IOException, EOFException { return this.readChar(buf, 0, buf.length); }
public void writeShort(short[] buf) throws IOException { this.writeShort(buf, 0, buf.length); }
public void writeInt(int[] buf) throws IOException { this.writeInt(buf, 0, buf.length); }
public void writeFloat(float[] buf, int off, int len) throws IOException { int i = 0; while (i < off + len) { // use DataOutputStream.writeFloat() this.writeFloat(buf[i + off]); i++; } }
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 void writeByte(byte b) throws IOException { this.write(b); }
public int readDouble(double[] buf) throws IOException, EOFException { return this.readDouble(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 void writeUnsignedShort(int[] buf) throws IOException { this.writeUnsignedShort(buf, 0, buf.length); }
public void writeLong(long[] buf, int off, int len) throws IOException { int i = 0; while (i < off + len) { // use DataOutputStream.writeLong() this.writeLong(buf[i + off]); i++; } }
public void writeChar(char[] buf, int off, int len) throws IOException { int i = 0; while (i < off + len) { // use DataOutputStream.writeChar() this.writeChar(buf[i + off]); i++; } }