*
* @throws java.io.IOException
*/
public CustomComponentInfo load(CapInputStream in) throws UnableToReadCapFileException {
CustomComponentInfo customComponentInfo = new CustomComponentInfo();
// component_tag reading
customComponentInfo.setComponentTag(in.readByte());
// size reading
customComponentInfo.setSize(in.readShort());
// Aid length reading
customComponentInfo.setAidLength(in.readByte());
// aid reading
customComponentInfo.getAid().clear();
for (byte i = 0; i < customComponentInfo.getAidLength(); i++) {
customComponentInfo.getAid().add(in.readByte());
}
return customComponentInfo;
}