aQute.lib.osgi
Class AbstractResource

java.lang.Object
  extended by aQute.lib.osgi.AbstractResource
All Implemented Interfaces:
Resource
Direct Known Subclasses:
PreprocessResource

public abstract class AbstractResource
extends Object
implements Resource


Constructor Summary
protected AbstractResource(long modified)
           
 
Method Summary
protected abstract  byte[] getBytes()
           
 String getExtra()
           
 long lastModified()
           
 InputStream openInputStream()
           
 void setExtra(String extra)
           
 void write(OutputStream out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractResource

protected AbstractResource(long modified)
Method Detail

getExtra

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

lastModified

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

openInputStream

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

setExtra

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

write

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

getBytes

protected abstract byte[] getBytes()
                            throws Exception
Throws:
Exception


Copyright © 2012 aQute SARL. All Rights Reserved.