in src/main/java/com/hadoop/compression/lzo/LzopDecompressor.java [45:59]
public void initHeaderFlags(EnumSet<DChecksum> dflags,
EnumSet<CChecksum> cflags) {
try {
for (DChecksum flag : dflags) {
chkDMap.put(flag, flag.getChecksumClass().newInstance());
}
for (CChecksum flag : cflags) {
chkCMap.put(flag, flag.getChecksumClass().newInstance());
}
} catch (InstantiationException e) {
throw new RuntimeException("Internal error", e);
} catch (IllegalAccessException e) {
throw new RuntimeException("Internal error", e);
}
}