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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Jar
getJar()
long
lastModified()
java.lang.String
toString()
void
write(java.io.OutputStream out)
-
Methods inherited from class aQute.bnd.osgi.WriteResource
buffer, close, getExtra, openInputStream, setExtra, size
-
-
-
-
Constructor Detail
-
JarResource
public JarResource(Jar jar)
-
-
Method Detail
-
lastModified
public long lastModified()
- Specified by:
lastModified
in interfaceResource
- Specified by:
lastModified
in classWriteResource
-
write
public void write(java.io.OutputStream out) throws java.lang.Exception
- Specified by:
write
in interfaceResource
- Specified by:
write
in classWriteResource
- Throws:
java.lang.Exception
-
getJar
public Jar getJar()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-