93 lines
2.3 KiB
Java
93 lines
2.3 KiB
Java
/*
|
|
* Decompiled with CFR 0.152.
|
|
*/
|
|
package javax.baja.file.zip;
|
|
|
|
import java.io.IOException;
|
|
import java.io.InputStream;
|
|
import java.util.zip.ZipEntry;
|
|
import javax.baja.file.BAbstractFileStore;
|
|
import javax.baja.file.FilePath;
|
|
import javax.baja.file.zip.BZipSpace;
|
|
import javax.baja.sys.BAbsTime;
|
|
import javax.baja.sys.Sys;
|
|
import javax.baja.sys.Type;
|
|
|
|
/*
|
|
* Illegal identifiers - consider using --renameillegalidents true
|
|
*/
|
|
public class BZipFileEntry
|
|
extends BAbstractFileStore {
|
|
public static final Type TYPE;
|
|
ZipEntry zipEntry;
|
|
BAbsTime modified;
|
|
static /* synthetic */ Class class$javax$baja$file$zip$BZipFileEntry;
|
|
|
|
public ZipEntry getZipEntry() {
|
|
return this.zipEntry;
|
|
}
|
|
|
|
public boolean isDirectory() {
|
|
return false;
|
|
}
|
|
|
|
public boolean isReadonly() {
|
|
return true;
|
|
}
|
|
|
|
public long getSize() {
|
|
return this.zipEntry.getSize();
|
|
}
|
|
|
|
public BAbsTime getLastModified() {
|
|
if (this.modified == null) {
|
|
this.modified = BAbsTime.make(this.zipEntry.getTime());
|
|
}
|
|
return this.modified;
|
|
}
|
|
|
|
public InputStream getInputStream() throws IOException {
|
|
BZipSpace bZipSpace = (BZipSpace)this.getFileSpace();
|
|
return bZipSpace.getZip().getInputStream(this.zipEntry);
|
|
}
|
|
|
|
public long getCrc() throws IOException {
|
|
return this.zipEntry.getCrc();
|
|
}
|
|
|
|
public int hashCode() {
|
|
return this.zipEntry.hashCode();
|
|
}
|
|
|
|
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 BZipFileEntry(BZipSpace bZipSpace, FilePath filePath, ZipEntry zipEntry) {
|
|
super(bZipSpace, filePath);
|
|
this.zipEntry = zipEntry;
|
|
}
|
|
|
|
static {
|
|
Class clazz = class$javax$baja$file$zip$BZipFileEntry;
|
|
if (clazz == null) {
|
|
clazz = class$javax$baja$file$zip$BZipFileEntry = BZipFileEntry.class("[Ljavax.baja.file.zip.BZipFileEntry;", false);
|
|
}
|
|
TYPE = Sys.loadType(clazz);
|
|
}
|
|
}
|
|
|