|
XBRLAPIA Java API for XBRL |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Cache
| Method Summary | |
|---|---|
void |
copyToCache(URI originalURI,
File cacheFile)
Copy the original resource into the local cache if the resource exists and is able to be copied into the cache and does nothing otherwise. |
void |
copyToCache(URI originalURI,
String xml)
Copy the original resource into the local cache. |
List<URI> |
getAllUris(URI uri)
This method provides a useful means of getting a list of the URIs for all documents in a branch of the cache. |
File |
getCacheFile(URI uri)
Gets the cache file for an original URI. |
URI |
getCacheURI(URI uri)
TODO Modify to use the java.net.URIEncoder and java.net.URIDecoder classes. |
URI |
getOriginalURI(File file)
|
URI |
getOriginalURI(URI uri)
|
boolean |
isCacheURI(URI uri)
Tests if a URI is a URI of a resource in the local cache. |
void |
purge(URI uri)
Delete a resource from the cache. |
| Method Detail |
|---|
boolean isCacheURI(URI uri)
throws XBRLException
uri - The URI to be tested to see if it identifies a
resource in the local cache.
XBRLException - if the URI status as a cache URI cannot be determined.
URI getCacheURI(URI uri)
throws XBRLException
uri - The URI to be translated into a cache URI (if necessary).
XBRLException - if the resource cannot be cached.
URI getOriginalURI(URI uri)
throws XBRLException
uri - The URI to be translated into an original URI (if necessary).
XBRLException - if a caching operation fails
or if a cache file cannot be translated into a URI.
URI getOriginalURI(File file)
throws XBRLException
file - The file to be translated into an original URI (if necessary).
XBRLException - if a caching operation fails
or if a cache file cannot be translated into a URI.
File getCacheFile(URI uri)
throws XBRLException
uri - The URI to obtain the cache file for,
XBRLException - if the URI cannot be translated into
a location in the local cache.
void copyToCache(URI originalURI,
File cacheFile)
originalURI - the URI of the resource to be copied into the cache.cacheFile - The file to be used to store the cache version of the resource.
void copyToCache(URI originalURI,
String xml)
throws XBRLException
originalURI - the URI of the resource to be copied into the cache.xml - The XML to store in the cache at the given URI.
XBRLException - if the resource cannot be copied into the local cache.
void purge(URI uri)
throws XBRLException
uri - The original or the cache URI.
XBRLException - if the cache file cannot be determined.
List<URI> getAllUris(URI uri)
throws XBRLException
uri - A URI that corresponds to a directory or file in the cache.
XBRLException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||