@Test public void reset() { this.in.read(); this.in.mark(Integer.MAX_VALUE); final int r1 = this.in.read(); this.in.reset(); assertThat(this.in.read(), is(r1)); }
@Override public void reset() { this.cursor = this.markLocation; }
InfiniteInputStream extends InputStream { @Override public void reset() { this.cursor = this.markLocation; } }
InfiniteInputStream extends InputStream { @Override public void reset() { this.cursor = this.markLocation; } InfiniteInputStream(final byte[] buf); }
InfiniteInputStream extends InputStream { @Override public void reset() { this.cursor = this.markLocation; } InfiniteInputStream(final byte[] buf); @Override int read(); @Override int read(final byte[] b); @Override int read(final byte[] b, final int off, final int len); @Override int available(); @Override void mark(final int readlimit); @Override void reset(); @Override boolean markSupported(); @Override String toString(); }
InfiniteInputStream extends InputStream { @Override public void reset() { this.cursor = this.markLocation; } InfiniteInputStream(final byte[] buf); @Override int read(); @Override int read(final byte[] b); @Override int read(final byte[] b, final int off, final int len); @Override int available(); @Override void mark(final int readlimit); @Override void reset(); @Override boolean markSupported(); @Override String toString();  }