|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BundleStore
Method Summary | |
---|---|
InputStream |
get(String fileName)
Returns an InputStream to the data of the specified resource. |
boolean |
put(String fileName,
InputStream data)
Stores the specified resource in the store. |
boolean |
remove(String filename)
Removes the specified resource from the store. |
Methods inherited from interface org.osgi.service.cm.ManagedService |
---|
updated |
Method Detail |
---|
InputStream get(String fileName) throws IOException
InputStream
to the data of the specified resource.
fileName
- Identifier of the requested resource.
InputStream
to the requested resource or null
if no such resource is available.
IOException
- If there was a problem returning the requested resource.boolean put(String fileName, InputStream data) throws IOException
fileName
- Identifier of the resource.data
- The actual data of the resource.
true
if the resource was successfully stored, false
if the resource already existed
IOException
- If there was a problem reading or writing the data of the resource.boolean remove(String filename) throws IOException
filename
- Identifier of the resource.
true
if the resource was successfully removed, false
if the resource was not present to begin with
IOException
- If there was a problem removing the data of the resource from the store.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |