*
* @throws java.io.IOException
*/
public InterfaceNameInfo load(CapInputStream in) throws UnableToReadCapFileException {
InterfaceNameInfo interfaceNameInfo = new InterfaceNameInfo();
interfaceNameInfo.setInterfaceNameLength(in.readByte());
interfaceNameInfo.getInterfaceName().clear();
for (int i = 0; i < interfaceNameInfo.getInterfaceNameLength(); i++) {
interfaceNameInfo.getInterfaceName().add(in.readByte());
}
return interfaceNameInfo;
}