|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ace.obr.storage.file.BundleFileStore
public class BundleFileStore
This BundleStore retrieves the files from the file system. Via the Configurator the relative path is set, and all bundles and the repository.xml should be retrievable from that path (which will internally be converted to an absolute path).
Constructor Summary | |
---|---|
BundleFileStore()
|
Method Summary | |
---|---|
void |
generateMetadata()
|
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. |
void |
updated(Dictionary dict)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BundleFileStore()
Method Detail |
---|
public InputStream get(String fileName) throws IOException
BundleStore
InputStream
to the data of the specified resource.
get
in interface BundleStore
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.public boolean put(String fileName, InputStream data) throws IOException
BundleStore
put
in interface BundleStore
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.public boolean remove(String fileName) throws IOException
BundleStore
remove
in interface BundleStore
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.public void generateMetadata() throws IOException
IOException
public void updated(Dictionary dict) throws org.osgi.service.cm.ConfigurationException
updated
in interface org.osgi.service.cm.ManagedService
org.osgi.service.cm.ConfigurationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |