@Test public void read() throws IOException { int expected = this.inputStream.read(); assertArrayEquals(new byte[]{(byte) expected}, this.transferProgress.getBuffer()); assertEquals(1, this.transferProgress.getLength()); }
@Override public int read() throws IOException { int b = super.read(); this.transferProgress.notify(new byte[]{(byte) b}, 1); return b; }
TransferProgressFileInputStream extends FileInputStream { @Override public int read() throws IOException { int b = super.read(); this.transferProgress.notify(new byte[]{(byte) b}, 1); return b; } }
TransferProgressFileInputStream extends FileInputStream { @Override public int read() throws IOException { int b = super.read(); this.transferProgress.notify(new byte[]{(byte) b}, 1); return b; } TransferProgressFileInputStream(File file, TransferProgress transferProgress); }
TransferProgressFileInputStream extends FileInputStream { @Override public int read() throws IOException { int b = super.read(); this.transferProgress.notify(new byte[]{(byte) b}, 1); return b; } TransferProgressFileInputStream(File file, TransferProgress transferProgress); @Override int read(); @Override int read(byte b[]); @Override int read(byte b[], int off, int len); }
TransferProgressFileInputStream extends FileInputStream { @Override public int read() throws IOException { int b = super.read(); this.transferProgress.notify(new byte[]{(byte) b}, 1); return b; } TransferProgressFileInputStream(File file, TransferProgress transferProgress); @Override int read(); @Override int read(byte b[]); @Override int read(byte b[], int off, int len);  }