@Override public long skip(long byteCount) throws IOException { return Streams.skipByReading(this, byteCount); } }
@Override public long skip(long byteCount) throws IOException { return Streams.skipByReading(this, byteCount); }
/** * Skip up to {@code byteCount} bytes of data on the underlying input * stream. Any skipped bytes are added to the running checksum value. * * @param byteCount the number of bytes to skip. * @throws IOException if this stream is closed or another I/O error occurs. * @return the number of bytes skipped. */ @Override public long skip(long byteCount) throws IOException { return Streams.skipByReading(this, byteCount); } }
/** * Skips at most {@code n} bytes in this stream. This method does nothing and returns * 0 if {@code n} is negative, but some subclasses may throw. * * <p>Note the "at most" in the description of this method: this method may choose to skip * fewer bytes than requested. Callers should <i>always</i> check the return value. * * <p>This default implementation reads bytes into a temporary * buffer. Concrete subclasses should provide their own implementation. * * @param byteCount the number of bytes to skip. * @return the number of bytes actually skipped. * @throws IOException * if this stream is closed or another IOException occurs. */ public long skip(long byteCount) throws IOException { return Streams.skipByReading(this, byteCount); } }
/** * Skips {@code count} number of bytes in this stream. Subsequent * calls to {@code read} will not return these bytes unless {@code reset} is * used. This implementation skips {@code byteCount} bytes in the * filtered stream and increments the line number count whenever line * terminator sequences are skipped. * * @param byteCount * the number of bytes to skip. * @return the number of bytes actually skipped. * @throws IOException * if this stream is closed or another IOException occurs. * @see #mark(int) * @see #read() * @see #reset() */ @Override public long skip(long byteCount) throws IOException { return Streams.skipByReading(this, byteCount); } }
/** * {@inheritDoc} * <p>Note: if {@code n > Integer.MAX_VALUE}, this stream will only attempt to * skip {@code Integer.MAX_VALUE} bytes. */ @Override public long skip(long byteCount) throws IOException { byteCount = Math.min(Integer.MAX_VALUE, byteCount); return Streams.skipByReading(this, byteCount); }
/** * Skips up to {@code byteCount} bytes of uncompressed data. * * @param byteCount the number of bytes to skip. * @return the number of uncompressed bytes skipped. * @throws IllegalArgumentException if {@code byteCount < 0}. * @throws IOException if an error occurs skipping. */ @Override public long skip(long byteCount) throws IOException { if (byteCount < 0) { throw new IllegalArgumentException("byteCount < 0"); } return Streams.skipByReading(this, byteCount); }
@Override public long skip(long byteCount) throws IOException { return Streams.skipByReading(this, byteCount); } }
@Override public long skip(long byteCount) throws IOException { return Streams.skipByReading(this, byteCount); } }
/** * Skip up to {@code byteCount} bytes of data on the underlying input * stream. Any skipped bytes are added to the running checksum value. * * @param byteCount the number of bytes to skip. * @throws IOException if this stream is closed or another I/O error occurs. * @return the number of bytes skipped. */ @Override public long skip(long byteCount) throws IOException { return Streams.skipByReading(this, byteCount); } }
@Override public long skip(long byteCount) throws IOException { return Streams.skipByReading(this, byteCount); } }
@Override public long skip(long byteCount) throws IOException { return Streams.skipByReading(this, byteCount); }
@Override public long skip(long byteCount) throws IOException { return Streams.skipByReading(this, byteCount); } }
@Override public long skip(long byteCount) throws IOException { return Streams.skipByReading(this, byteCount); }
/** * {@inheritDoc} * <p>Note: if {@code n > Integer.MAX_VALUE}, this stream will only attempt to * skip {@code Integer.MAX_VALUE} bytes. */ @Override public long skip(long byteCount) throws IOException { byteCount = Math.min(Integer.MAX_VALUE, byteCount); return Streams.skipByReading(this, byteCount); }
/** * {@inheritDoc} * <p>Note: if {@code n > Integer.MAX_VALUE}, this stream will only attempt to * skip {@code Integer.MAX_VALUE} bytes. */ @Override public long skip(long byteCount) throws IOException { byteCount = Math.min(Integer.MAX_VALUE, byteCount); return Streams.skipByReading(this, byteCount); }
/** * {@inheritDoc} * <p>Note: if {@code n > Integer.MAX_VALUE}, this stream will only attempt to * skip {@code Integer.MAX_VALUE} bytes. */ @Override public long skip(long byteCount) throws IOException { byteCount = Math.min(Integer.MAX_VALUE, byteCount); return Streams.skipByReading(this, byteCount); }
/** * {@inheritDoc} * <p>Note: if {@code n > Integer.MAX_VALUE}, this stream will only attempt to * skip {@code Integer.MAX_VALUE} bytes. */ @Override public long skip(long byteCount) throws IOException { byteCount = Math.min(Integer.MAX_VALUE, byteCount); return Streams.skipByReading(this, byteCount); }
/** * {@inheritDoc} * <p>Note: if {@code n > Integer.MAX_VALUE}, this stream will only attempt to * skip {@code Integer.MAX_VALUE} bytes. */ @Override public long skip(long byteCount) throws IOException { byteCount = Math.min(Integer.MAX_VALUE, byteCount); return Streams.skipByReading(this, byteCount); }
/** * {@inheritDoc} * <p>Note: if {@code n > Integer.MAX_VALUE}, this stream will only attempt to * skip {@code Integer.MAX_VALUE} bytes. */ @Override public long skip(long byteCount) throws IOException { byteCount = Math.min(Integer.MAX_VALUE, byteCount); return Streams.skipByReading(this, byteCount); }