import fr.xlim.ssd.capmanipulator.library.exceptions.UnableToReadCapFileException;
public class ExtendedMethodHeaderInfoRead {
public ExtendedMethodHeaderInfo load(CapInputStream in, byte bitfield) throws UnableToReadCapFileException {
ExtendedMethodHeaderInfo extendedMethodHeaderInfo = new ExtendedMethodHeaderInfo();
extendedMethodHeaderInfo.setFlags((byte) ((bitfield & 0xF0) >>> 4));
extendedMethodHeaderInfo.setPadding((byte) ((bitfield & 0x0F)));
extendedMethodHeaderInfo.setMaxStack(in.readByte());
extendedMethodHeaderInfo.setNargs(in.readByte());
extendedMethodHeaderInfo.setMaxLocals(in.readByte());
return extendedMethodHeaderInfo;
}