< prev index next >
src/java.base/share/classes/jdk/internal/module/ModuleInfo.java
Print this page
*** 956,971 ****
DataInputWrapper(ByteBuffer bb) {
this.bb = bb;
}
@Override
! public void readFully(byte b[]) throws IOException {
readFully(b, 0, b.length);
}
@Override
! public void readFully(byte b[], int off, int len) throws IOException {
try {
bb.get(b, off, len);
} catch (BufferUnderflowException e) {
throw new EOFException(e.getMessage());
}
--- 956,971 ----
DataInputWrapper(ByteBuffer bb) {
this.bb = bb;
}
@Override
! public void readFully(byte[] b) throws IOException {
readFully(b, 0, b.length);
}
@Override
! public void readFully(byte[] b, int off, int len) throws IOException {
try {
bb.get(b, off, len);
} catch (BufferUnderflowException e) {
throw new EOFException(e.getMessage());
}
< prev index next >