List of usage examples for com.google.common.io CountingInputStream reset
@Override public synchronized void reset() throws IOException
From source file:org.echocat.marquardt.common.Validator.java
private byte[] readSignableBytesAgainForLaterValidation(final CountingInputStream bufferedInputStream) throws IOException { final int position = (int) bufferedInputStream.getCount(); bufferedInputStream.reset(); final byte[] bytes = new byte[position]; IOUtils.read(bufferedInputStream, bytes, 0, position); return bytes; }