BootstrapMethods(int name_index, int length, DataInputStream file, ConstantPool constant_pool) throws IOException {
this(name_index, length, (BootstrapMethod[])null, constant_pool);
data = new byte[length];
- file.read(data);
+ file.readFully(data);
isInPackedState = true;
}
LineNumberTable(int name_index, int length, DataInputStream file, ConstantPool constant_pool) throws IOException {
this(name_index, length, (LineNumber[]) null, constant_pool);
data = new byte[length];
- file.read(data);
+ file.readFully(data);
isInPackedState = true;
// assert(bytesRead==length)
}
LocalVariableTable(int name_index, int length, DataInputStream file, ConstantPool constant_pool) throws IOException {
super(Constants.ATTR_LOCAL_VARIABLE_TABLE, name_index, length, constant_pool);
data = new byte[length];
- file.read(data);
+ file.readFully(data);
isInPackedState = true;
// assert(bytesRead==length)
}
public MethodParameters(int index, int length, DataInputStream dis, ConstantPool cpool) throws IOException {
super(Constants.ATTR_METHOD_PARAMETERS,index,length,cpool);
data = new byte[length];
- dis.read(data,0,length);
+ dis.readFully(data,0,length);
isInPackedState = true;
}
protected void readAnnotations(DataInputStream dis, ConstantPool cpool) throws IOException {
annotation_data = new byte[length];
- dis.read(annotation_data, 0, length);
+ dis.readFully(annotation_data, 0, length);
}
protected void writeAnnotations(DataOutputStream dos) throws IOException {
protected void readParameterAnnotations(DataInputStream dis,ConstantPool cpool) throws IOException {
annotation_data = new byte[length];
- dis.read(annotation_data,0,length);
+ dis.readFully(annotation_data,0,length);
}
private void inflate() {
protected void readTypeAnnotations(DataInputStream dis,ConstantPool cpool) throws IOException {
annotation_data = new byte[length];
- dis.read(annotation_data,0,length);
+ dis.readFully(annotation_data,0,length);
}
public final void dump(DataOutputStream dos) throws IOException {