@Test public void noBranch_bytesLength() throws IOException { assertThat(trunk.read(buffers[0], 0, BUFSIZE)).isEqualTo(BUFSIZE); assertThat(buffers[0]).isEqualTo(bytes); assertThat(trunk.read(buffers[0], 0, BUFSIZE)).isEqualTo(-1); }
@Override public int read() throws IOException { byte[] b = new byte[1]; return (read(b, 0, 1) > 0 ? (b[0] & 0xff) : -1); }
BranchingStreamWrapper extends BranchingInputStream { @Override public int read() throws IOException { byte[] b = new byte[1]; return (read(b, 0, 1) > 0 ? (b[0] & 0xff) : -1); } }
BranchingStreamWrapper extends BranchingInputStream { @Override public int read() throws IOException { byte[] b = new byte[1]; return (read(b, 0, 1) > 0 ? (b[0] & 0xff) : -1); } BranchingStreamWrapper(InputStream in, Factory<Buffer> bufferFactory); }
BranchingStreamWrapper extends BranchingInputStream { @Override public int read() throws IOException { byte[] b = new byte[1]; return (read(b, 0, 1) > 0 ? (b[0] & 0xff) : -1); } BranchingStreamWrapper(InputStream in, Factory<Buffer> bufferFactory); @Override BranchingStreamWrapper branch(); @Override boolean isClosed(); @Override BranchingStreamWrapper getParent(); @Override int read(); @Override int read(byte[] b); @Override int read(byte[] b, int off, int len); @Override long skip(long n); @Override int available(); @Override void close(); @Override void closeBranches(); @Override void finalize(); }
BranchingStreamWrapper extends BranchingInputStream { @Override public int read() throws IOException { byte[] b = new byte[1]; return (read(b, 0, 1) > 0 ? (b[0] & 0xff) : -1); } BranchingStreamWrapper(InputStream in, Factory<Buffer> bufferFactory); @Override BranchingStreamWrapper branch(); @Override boolean isClosed(); @Override BranchingStreamWrapper getParent(); @Override int read(); @Override int read(byte[] b); @Override int read(byte[] b, int off, int len); @Override long skip(long n); @Override int available(); @Override void close(); @Override void closeBranches(); @Override void finalize();  }