src/share/classes/com/sun/media/sound/RIFFReader.java
Print this page
*** 145,159 ****
filepointer += ret;
return ret;
}
}
! public final void readFully(byte b[]) throws IOException {
readFully(b, 0, b.length);
}
! public final void readFully(byte b[], int off, int len) throws IOException {
if (len < 0)
throw new IndexOutOfBoundsException();
while (len > 0) {
int s = read(b, off, len);
if (s < 0)
--- 145,159 ----
filepointer += ret;
return ret;
}
}
! public void readFully(byte b[]) throws IOException {
readFully(b, 0, b.length);
}
! public void readFully(byte b[], int off, int len) throws IOException {
if (len < 0)
throw new IndexOutOfBoundsException();
while (len > 0) {
int s = read(b, off, len);
if (s < 0)
*** 163,173 ****
off += s;
len -= s;
}
}
! public final long skipBytes(long n) throws IOException {
if (n < 0)
return 0;
long skipped = 0;
while (skipped != n) {
long s = skip(n - skipped);
--- 163,173 ----
off += s;
len -= s;
}
}
! public long skipBytes(long n) throws IOException {
if (n < 0)
return 0;
long skipped = 0;
while (skipped != n) {
long s = skip(n - skipped);