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 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 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.