aQute.lib.osgi
Class EmbeddedResource

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

public class EmbeddedResource
extends Object
implements Resource


Constructor Summary
EmbeddedResource(byte[] data, long lastModified)
           
 
Method Summary
static void build(Jar jar, InputStream in, long lastModified)
           
static void build(Jar sub, Resource resource)
           
 String getExtra()
           
 long lastModified()
           
 InputStream openInputStream()
           
 void setExtra(String extra)
           
 long size()
           
 String toString()
           
 void write(OutputStream out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EmbeddedResource

public EmbeddedResource(byte[] data,
                        long lastModified)
Method Detail

openInputStream

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

write

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

toString

public String toString()
Overrides:
toString in class Object

build

public static void build(Jar jar,
                         InputStream in,
                         long lastModified)
                  throws IOException
Throws:
IOException

lastModified

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

build

public static void build(Jar sub,
                         Resource resource)
                  throws Exception
Throws:
Exception

getExtra

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

setExtra

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

size

public long size()


Copyright © 2012 aQute SARL. All Rights Reserved.