aQute.lib.osgi
Class ZipResource

java.lang.Object
  extended by aQute.lib.osgi.ZipResource
All Implemented Interfaces:
Resource

public class ZipResource
extends java.lang.Object
implements Resource


Method Summary
static java.util.zip.ZipFile build(Jar jar, java.io.File file)
           
static java.util.zip.ZipFile build(Jar jar, java.io.File file, java.util.regex.Pattern pattern)
           
 java.lang.String getExtra()
           
 long lastModified()
           
 java.io.InputStream openInputStream()
           
 void setExtra(java.lang.String extra)
           
 java.lang.String toString()
           
 void write(java.io.OutputStream out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

openInputStream

public java.io.InputStream openInputStream()
                                    throws java.io.IOException
Specified by:
openInputStream in interface Resource
Throws:
java.io.IOException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

build

public static java.util.zip.ZipFile build(Jar jar,
                                          java.io.File file)
                                   throws java.util.zip.ZipException,
                                          java.io.IOException
Throws:
java.util.zip.ZipException
java.io.IOException

build

public static java.util.zip.ZipFile build(Jar jar,
                                          java.io.File file,
                                          java.util.regex.Pattern pattern)
                                   throws java.util.zip.ZipException,
                                          java.io.IOException
Throws:
java.util.zip.ZipException
java.io.IOException

write

public void write(java.io.OutputStream out)
           throws java.io.IOException
Specified by:
write in interface Resource
Throws:
java.io.IOException

lastModified

public long lastModified()
Specified by:
lastModified in interface Resource

getExtra

public java.lang.String getExtra()
Specified by:
getExtra in interface Resource

setExtra

public void setExtra(java.lang.String extra)
Specified by:
setExtra in interface Resource