Method from org.apache.geronimo.deployment.util.UnpackedJarEntry Detail: |
public Object clone() {
return new UnpackedJarEntry(getName(), file, manifest);
}
|
public Attributes getAttributes() throws IOException {
if (manifest == null) {
return null;
}
return manifest.getAttributes(getName());
}
|
public Certificate[] getCertificates() {
return null;
}
Always return null. This could be implementd by verifing the signatures
in the manifest file against the actual file, but we don't need this for
Geronimo. |
public String getComment() {
return null;
}
|
public long getCompressedSize() {
return getSize();
}
An unpacked jar is not compressed, so this method returns getSize(). |
public long getCrc() {
return super.getCrc(); //To change body of overridden methods use File | Settings | File Templates.
}
|
public byte[] getExtra() {
return null;
}
|
public File getFile() {
return file;
}
|
public int getMethod() {
return ZipEntry.STORED;
}
|
public long getSize() {
if (file.isDirectory()) {
return -1;
} else {
return file.length();
}
}
|
public long getTime() {
return file.lastModified();
}
|
public boolean isDirectory() {
return file.isDirectory();
}
|
public void setComment(String comment) {
throw new UnsupportedOperationException("Can not change the comment of unpacked jar entry");
}
An unpacked jar is read only, so this method always throws an UnsupportedOperationException. |
public void setCompressedSize(long compressedSize) {
throw new UnsupportedOperationException("Can not change the compressed size of unpacked jar entry");
}
An unpacked jar is read only, so this method always throws an UnsupportedOperationException. |
public void setCrc(long crc) {
throw new UnsupportedOperationException("Can not change the crc of unpacked jar entry");
}
An unpacked jar is read only, so this method always throws an UnsupportedOperationException. |
public void setExtra(byte[] extra) {
throw new UnsupportedOperationException("Can not change the extra data of unpacked jar entry");
}
An unpacked jar is read only, so this method always throws an UnsupportedOperationException. |
public void setMethod(int method) {
throw new UnsupportedOperationException("Can not change the method of unpacked jar entry");
}
An unpacked jar is read only, so this method always throws an UnsupportedOperationException. |
public void setSize(long size) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Can not change the size of unpacked jar entry");
}
An unpacked jar is read only, so this method always throws an UnsupportedOperationException. |
public void setTime(long time) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Can not change the time of unpacked jar entry");
}
An unpacked jar is read only, so this method always throws an UnsupportedOperationException. |