@Test public void testOnMark() { ResponseHandler responseHandler = mock(ResponseHandler.class); String myString = "Hello! How are you"; InputStream is = new ByteArrayInputStream(myString.getBytes()); CountingInputStream countingInputStream = new CountingInputStream(is, responseHandler); boolean markSupported = countingInputStream.markSupported(); Assert.assertTrue(!markSupported); }
@Override public boolean markSupported() { return false; }
CountingInputStream extends FilterInputStream { @Override public boolean markSupported() { return false; } }
CountingInputStream extends FilterInputStream { @Override public boolean markSupported() { return false; } CountingInputStream(InputStream in, ResponseHandler responseHandler); }
CountingInputStream extends FilterInputStream { @Override public boolean markSupported() { return false; } CountingInputStream(InputStream in, ResponseHandler responseHandler); @Override int read(); @Override int read(@NonNull byte[] b); @Override int read(@NonNull byte[] b, int off, int len); @Override boolean markSupported(); @Override void reset(); }
CountingInputStream extends FilterInputStream { @Override public boolean markSupported() { return false; } CountingInputStream(InputStream in, ResponseHandler responseHandler); @Override int read(); @Override int read(@NonNull byte[] b); @Override int read(@NonNull byte[] b, int off, int len); @Override boolean markSupported(); @Override void reset();  }