@Test public void mark_supported() throws Exception { when(istream.markSupported()).thenReturn(true); ByteCountingInputStream s = new ByteCountingInputStream(istream); assertEquals(true, s.markSupported()); verify(istream, times(1)).markSupported(); verifyNoMoreInteractions(istream); }
@Override public boolean markSupported() { return in_.markSupported(); }
ByteCountingInputStream extends InputStream { @Override public boolean markSupported() { return in_.markSupported(); } }
ByteCountingInputStream extends InputStream { @Override public boolean markSupported() { return in_.markSupported(); } ByteCountingInputStream(InputStream in, boolean propagate_close);  ByteCountingInputStream(InputStream in); }
ByteCountingInputStream extends InputStream { @Override public boolean markSupported() { return in_.markSupported(); } ByteCountingInputStream(InputStream in, boolean propagate_close);  ByteCountingInputStream(InputStream in); long getBytesRead(); @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 synchronized void mark(int readlimit); @Override synchronized void reset(); @Override boolean markSupported(); }
ByteCountingInputStream extends InputStream { @Override public boolean markSupported() { return in_.markSupported(); } ByteCountingInputStream(InputStream in, boolean propagate_close);  ByteCountingInputStream(InputStream in); long getBytesRead(); @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 synchronized void mark(int readlimit); @Override synchronized void reset(); @Override boolean markSupported();  }