use of com.pixbits.lib.io.archive.handles.BinaryHandle in project rom-manager by Jakz.
the class CSOSupportPlugin method getSpecializedEntry.
@Override
public Handle getSpecializedEntry(Handle entry) {
try {
if (entry instanceof BinaryHandle) {
BinaryHandle handle = (BinaryHandle) entry;
if (handle.getExtension().compareToIgnoreCase("cso") == 0) {
CSOInfo info = new CSOInfo(handle.path());
Log.getLogger(LogSource.SCANNER).i3("Found potential CSO iso: " + handle.path());
return new CSOBinaryHandle(handle.path(), info);
}
}
} catch (IOException e) {
e.printStackTrace();
}
return entry;
}
Aggregations