* @throws fr.xlim.ssd.capmanipulator.library.exceptions.UnableToReadCapFileException
*
*/
public ClassExportsInfo load(CapInputStream in) throws UnableToReadCapFileException {
ClassExportsInfo classExportsInfo = new ClassExportsInfo();
classExportsInfo.setClassOffset(in.readShort());
classExportsInfo.setStaticFieldCount(in.readByte());
classExportsInfo.setStaticMethodCount(in.readByte());
classExportsInfo.setStaticFieldOffsets(new ArrayList<Short>(classExportsInfo.getStaticFieldCount()));
for (int i = 0; i < classExportsInfo.getStaticFieldCount(); i++) {
classExportsInfo.getStaticFieldOffsets().add(in.readShort());
}
classExportsInfo.setStaticMethodOffsets(new ArrayList<Short>(classExportsInfo.getStaticMethodCount()));
for (int i = 0; i < classExportsInfo.getStaticMethodCount(); i++) {
classExportsInfo.getStaticMethodOffsets().add(in.readShort());
}
return classExportsInfo;
}