blob: 2fb5c54e18d4c1a9d33f07107bab5cc3d4fb7cc8 [file] [log] [blame]
package aQute.bnd.osgi;
import java.io.*;
public class JarResource extends WriteResource {
Jar jar;
long size = -1;
public JarResource(Jar jar) {
this.jar = jar;
}
public long lastModified() {
return jar.lastModified();
}
public void write(OutputStream out) throws Exception {
try {
jar.write(out);
}
catch (Exception e) {
e.printStackTrace();
throw e;
}
}
public Jar getJar() {
return jar;
}
public String toString() {
return ":" + jar.getName() + ":";
}
}