87 lines
2.1 KiB
Java
87 lines
2.1 KiB
Java
/*
|
|
* Decompiled with CFR 0.152.
|
|
*/
|
|
package javax.baja.file;
|
|
|
|
import javax.baja.agent.AgentList;
|
|
import javax.baja.file.BAbstractFile;
|
|
import javax.baja.file.BIDataFile;
|
|
import javax.baja.file.BIFileStore;
|
|
import javax.baja.nav.BINavNode;
|
|
import javax.baja.sys.BIcon;
|
|
import javax.baja.sys.Context;
|
|
import javax.baja.sys.Sys;
|
|
import javax.baja.sys.Type;
|
|
|
|
/*
|
|
* Illegal identifiers - consider using --renameillegalidents true
|
|
*/
|
|
public class BDataFile
|
|
extends BAbstractFile
|
|
implements BIDataFile {
|
|
private static final BIcon icon = BIcon.std("file.png");
|
|
public static final Type TYPE;
|
|
static final BINavNode[] NO_NAV_NODES;
|
|
static /* synthetic */ Class class$javax$baja$file$BDataFile;
|
|
|
|
public String getNavDescription(Context context) {
|
|
return this.getSize() / 1024L + "kb " + this.getLastModified();
|
|
}
|
|
|
|
public boolean hasNavChildren() {
|
|
return false;
|
|
}
|
|
|
|
public BINavNode getNavChild(String string) {
|
|
return null;
|
|
}
|
|
|
|
public BINavNode[] getNavChildren() {
|
|
return NO_NAV_NODES;
|
|
}
|
|
|
|
public AgentList getAgents(Context context) {
|
|
AgentList agentList = super.getAgents(context);
|
|
agentList.toTop("web:FileDownloadView");
|
|
return agentList;
|
|
}
|
|
|
|
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 BDataFile(BIFileStore bIFileStore) {
|
|
super(bIFileStore);
|
|
}
|
|
|
|
public BDataFile() {
|
|
}
|
|
|
|
static {
|
|
Class clazz = class$javax$baja$file$BDataFile;
|
|
if (clazz == null) {
|
|
clazz = class$javax$baja$file$BDataFile = BDataFile.class("[Ljavax.baja.file.BDataFile;", false);
|
|
}
|
|
TYPE = Sys.loadType(clazz);
|
|
NO_NAV_NODES = new BINavNode[0];
|
|
}
|
|
}
|
|
|