Lines Matching refs:offset
22 * Current offset in the stream.
28 * @param offset offset into stream where data starts
29 * @param length length of data at offset
32 public LimitedLengthInputStream(InputStream in, long offset, long length) throws IOException {
39 if (offset < 0) {
40 throw new IOException("offset < 0");
47 if (length > Long.MAX_VALUE - offset) {
48 throw new IOException("offset + length > Long.MAX_VALUE");
51 mEnd = offset + length;
53 skip(offset);
54 mOffset = offset;
68 public int read(byte[] buffer, int offset, int byteCount) throws IOException {
74 Arrays.checkOffsetAndCount(arrayLength, offset, byteCount);
77 throw new IOException("offset out of bounds: " + mOffset + " + " + byteCount);
84 final int numRead = super.read(buffer, offset, byteCount);