2026-03-17 13:31:18 -07:00

119 lines
2.9 KiB
Java

/*
* Decompiled with CFR 0.152.
*/
package javax.baja.file.zip;
import javax.baja.file.BIFileStore;
import javax.baja.file.BLocalFileStore;
import javax.baja.file.BSubSpaceFile;
import javax.baja.file.zip.BZipSpace;
import javax.baja.naming.BOrd;
import javax.baja.space.BSpace;
import javax.baja.sys.BIcon;
import javax.baja.sys.Sys;
import javax.baja.sys.Type;
/*
* Illegal identifiers - consider using --renameillegalidents true
*/
public class BZipFile
extends BSubSpaceFile {
private static final BIcon icon = BIcon.std("files/zip.png");
public static final Type TYPE;
BZipSpace zipSpace;
static /* synthetic */ Class class$javax$baja$file$zip$BZipFile;
public boolean isModified() {
return false;
}
protected BSpace doOpen() {
if (this.zipSpace == null) {
this.zipSpace = new BZipSpace(this);
}
return this.zipSpace;
}
protected void doSave() throws Exception {
}
/*
* WARNING - Removed back jump from a try to a catch block - possible behaviour change.
* Enabled aggressive block sorting
* Enabled unnecessary exception pruning
* Enabled aggressive exception aggregation
*/
protected void doClose() {
if (this.zipSpace == null) return;
try {
this.zipSpace.close();
}
catch (Throwable throwable) {
Object var2_2 = null;
this.zipSpace = null;
throw throwable;
}
{
Object var2_3 = null;
this.zipSpace = null;
return;
}
}
public boolean hasNavChildren() {
return this.getStore() instanceof BLocalFileStore;
}
public BZipSpace getZipSpace() {
return (BZipSpace)this.getSubSpace();
}
public String getMimeType() {
return "application/zip";
}
public BOrd getNavOrd() {
if (this.getStore() instanceof BLocalFileStore) {
return BOrd.make(super.getNavOrd(), "zip:");
}
return super.getNavOrd();
}
public BIcon getIcon() {
return icon;
}
public Type getType() {
return TYPE;
}
static /* synthetic */ Class class(String string, boolean bl) {
try {
Class<?> clazz = Class.forName(string);
if (!bl) {
clazz = clazz.getComponentType();
}
return clazz;
}
catch (ClassNotFoundException classNotFoundException) {
throw new NoClassDefFoundError(classNotFoundException.getMessage());
}
}
public BZipFile(BIFileStore bIFileStore) {
super(bIFileStore);
}
public BZipFile() {
}
static {
Class clazz = class$javax$baja$file$zip$BZipFile;
if (clazz == null) {
clazz = class$javax$baja$file$zip$BZipFile = BZipFile.class("[Ljavax.baja.file.zip.BZipFile;", false);
}
TYPE = Sys.loadType(clazz);
}
}