|
org.netbeans.core.netigso 1.16 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.netbeans.core.netigso.spi.NetigsoArchive
public final class NetigsoArchive
Netigso's accessor to resource cache. Can be obtained from framework
configuration properties under the key "netigso.archive". For each
bundle then use forBundle(long, org.netbeans.core.netigso.spi.BundleContent)
method to obtain own copy of the archive. Your bundle needs to have
an associated BundleContent implementation. Then you can read
cached content of your bundles via fromArchive(java.lang.String).
| Method Summary | |
|---|---|
NetigsoArchive |
forBundle(long bundleId,
BundleContent content)
Creates a clone of the archive for given bundle. |
byte[] |
fromArchive(String resource)
Checks whether the given resource is in the archive cache. |
boolean |
isActive()
Checks whether the archive should be used or not. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public NetigsoArchive forBundle(long bundleId,
BundleContent content)
bundleId - identification of the bundlecontent - implementation that can read from the bundle
public byte[] fromArchive(String resource)
throws IOException
BundleContent associated with
this archive to deliver it. Later, during system execution this resource
is stored into the global archive for use during subsequent restart.
resource - name of the resource
IOException - signals I/O errorpublic boolean isActive()
false.
fromArchive(java.lang.String) method
|
org.netbeans.core.netigso 1.16 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||