aQute.lib.osgi
Class AbstractResource
java.lang.Object
aQute.lib.osgi.AbstractResource
- All Implemented Interfaces:
- Resource
- Direct Known Subclasses:
- PreprocessResource
public abstract class AbstractResource
- extends java.lang.Object
- implements Resource
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractResource
protected AbstractResource(long modified)
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