Package aQute.bnd.osgi
Class JarResource
- java.lang.Object
-
- aQute.bnd.osgi.WriteResource
-
- aQute.bnd.osgi.JarResource
-
- All Implemented Interfaces:
Resource,java.io.Closeable,java.lang.AutoCloseable
public class JarResource extends WriteResource
-
-
Constructor Summary
Constructors Constructor Description JarResource(Jar jar)JarResource(Jar jar, boolean closeJar)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()JargetJar()longlastModified()java.lang.StringtoString()voidwrite(java.io.OutputStream out)-
Methods inherited from class aQute.bnd.osgi.WriteResource
buffer, getExtra, openInputStream, setExtra, size
-
-
-
-
Field Detail
-
jar
private final Jar jar
-
closeJar
private final boolean closeJar
-
-
Method Detail
-
lastModified
public long lastModified()
- Specified by:
lastModifiedin interfaceResource- Specified by:
lastModifiedin classWriteResource
-
write
public void write(java.io.OutputStream out) throws java.lang.Exception- Specified by:
writein interfaceResource- Specified by:
writein classWriteResource- Throws:
java.lang.Exception
-
getJar
public Jar getJar()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classWriteResource
-
-