aQute.lib.osgi
Class ZipResource

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

public class ZipResource
extends Object
implements Resource


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

Method Detail

openInputStream

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

toString

public String toString()
Overrides:
toString in class Object

build

public static ZipFile build(Jar jar,
                            File file)
                     throws ZipException,
                            IOException
Throws:
ZipException
IOException

build

public static ZipFile build(Jar jar,
                            File file,
                            Pattern pattern)
                     throws ZipException,
                            IOException
Throws:
ZipException
IOException

write

public void write(OutputStream out)
           throws Exception
Specified by:
write in interface Resource
Throws:
Exception

lastModified

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

getExtra

public String getExtra()
Specified by:
getExtra in interface Resource

setExtra

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


Copyright © 2012 aQute SARL. All Rights Reserved.