*
* @throws java.io.IOException
*/
public PackageNameInfo load(CapInputStream in) throws UnableToReadCapFileException {
PackageNameInfo packageNameInfo = new PackageNameInfo();
// nameLength reading
packageNameInfo.setNameLength(in.readByte());
// name reading
packageNameInfo.getName().clear();
for (byte i = 0; i < packageNameInfo.getNameLength(); i++) {
packageNameInfo.getName().add(in.readByte());
}
return packageNameInfo;
}