@Test public void testLength() throws Exception { assertThat(measure("ABC".getBytes("UTF-8")).getSize(), is(equalTo(3L))); assertThat(measure(new byte[10000]).getSize(), is(equalTo(10000L))); }
public long getSize() { return countingInputStream.getCount(); }
MetricsInputStream extends FilterInputStream { public long getSize() { return countingInputStream.getCount(); } }
MetricsInputStream extends FilterInputStream { public long getSize() { return countingInputStream.getCount(); } MetricsInputStream(final InputStream input); private  MetricsInputStream(final CountingInputStream countingStream, final MessageDigest messageDigest); }
MetricsInputStream extends FilterInputStream { public long getSize() { return countingInputStream.getCount(); } MetricsInputStream(final InputStream input); private  MetricsInputStream(final CountingInputStream countingStream, final MessageDigest messageDigest); String getMessageDigest(); long getSize(); StreamMetrics getMetrics(); }
MetricsInputStream extends FilterInputStream { public long getSize() { return countingInputStream.getCount(); } MetricsInputStream(final InputStream input); private  MetricsInputStream(final CountingInputStream countingStream, final MessageDigest messageDigest); String getMessageDigest(); long getSize(); StreamMetrics getMetrics();  }