ZipInputStreamCodeBaseEntry build(ZipInputStream zis, ZipEntry ze) throws IOException { long sz = ze.getSize(); ByteArrayOutputStream out; if (sz < 0 || sz > Integer.MAX_VALUE) { out = new ByteArrayOutputStream(); } else { out = new ByteArrayOutputStream((int) sz); } IO.copy(zis, out); byte[] bytes = out.toByteArray(); addLastModifiedTime(ze.getTime()); return new ZipInputStreamCodeBaseEntry(this, ze, bytes); }
@Override public String toString() { return getCodeBase() + ":" + getResourceName(); } }
@Override public ClassDescriptor getClassDescriptor() { return DescriptorFactory.createClassDescriptorFromResourceName(getResourceName()); }
data = ((ZipInputStreamCodeBaseEntry) codeBaseEntry).getBytes(); } else { try {
@Override public ClassDescriptor getClassDescriptor() { return DescriptorFactory.createClassDescriptorFromResourceName(getResourceName()); }
data = ((ZipInputStreamCodeBaseEntry) codeBaseEntry).getBytes(); } else { try {
@Override public String toString() { return getCodeBase() + ":" + getResourceName(); } }
ZipInputStreamCodeBaseEntry build(ZipInputStream zis, ZipEntry ze) throws IOException { long sz = ze.getSize(); ByteArrayOutputStream out; if (sz < 0 || sz > Integer.MAX_VALUE) { out = new ByteArrayOutputStream(); } else { out = new ByteArrayOutputStream((int) sz); } IO.copy(zis, out); byte[] bytes = out.toByteArray(); addLastModifiedTime(ze.getTime()); return new ZipInputStreamCodeBaseEntry(this, ze, bytes); }