/** * Repositions this stream to the position at the time the mark() method was * last called on this input stream. If mark() has not been called this * method repositions the stream to its beginning. */ public void reset() { delegate.reset(); }
/** * {@inheritDoc} */ @Override public synchronized void reset() { m_dis.reset(); }
/** * {@inheritDoc} */ @Override public synchronized void reset() { m_dis.reset(); }
/** * Repositions this stream to the position at the time the mark() method was * last called on this input stream. If mark() has not been called this * method repositions the stream to its beginning. */ public void reset() { delegate.reset(); }
bytes = new byte[read]; System.arraycopy(b, 0, bytes, 0, read); stream.reset();
bytes = new byte[read]; System.arraycopy(b, 0, bytes, 0, read); stream.reset();
stream.mark(nrOfBytes); bytes = IOUtils.toByteArray(stream, nrOfBytes, MAX_RECORD_LENGTH); stream.reset(); } else { bytes = new byte[0];