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 java.lang.Object
implements Resource


Constructor Summary
protected AbstractResource(long modified)
           
 
Method Summary
protected abstract  byte[] getBytes()
           
 java.lang.String getExtra()
           
 long lastModified()
           
 java.io.InputStream openInputStream()
           
 void setExtra(java.lang.String extra)
           
 void write(java.io.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 java.lang.String getExtra()
Specified by:
getExtra in interface Resource

lastModified

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

openInputStream

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

setExtra

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

write

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

getBytes

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