class XPersistenceService
extends java.lang.Object
implements javax.jnlp.PersistenceService
| Modifier | Constructor and Description |
|---|---|
protected |
XPersistenceService() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkLocation(java.net.URL location)
Checks whether the application has access to URL area
requested.
|
long |
create(java.net.URL location,
long maxsize) |
void |
delete(java.net.URL location) |
javax.jnlp.FileContents |
get(java.net.URL location) |
java.lang.String[] |
getNames(java.net.URL location) |
int |
getTag(java.net.URL location) |
void |
setTag(java.net.URL location,
int tag) |
protected java.io.File |
toCacheFile(java.net.URL location)
Converts a URL into a file in the persistence store.
|
protected void checkLocation(java.net.URL location)
throws java.net.MalformedURLException
java.net.MalformedURLException - if the application cannot access the locationprotected java.io.File toCacheFile(java.net.URL location)
throws java.net.MalformedURLException
java.net.MalformedURLExceptionpublic long create(java.net.URL location,
long maxsize)
throws java.net.MalformedURLException,
java.io.IOException
create in interface javax.jnlp.PersistenceServicejava.net.MalformedURLException - if the application cannot access the locationjava.io.IOExceptionpublic void delete(java.net.URL location)
throws java.net.MalformedURLException,
java.io.IOException
delete in interface javax.jnlp.PersistenceServicejava.net.MalformedURLException - if the application cannot access the locationjava.io.IOExceptionpublic javax.jnlp.FileContents get(java.net.URL location)
throws java.net.MalformedURLException,
java.io.IOException,
java.io.FileNotFoundException
get in interface javax.jnlp.PersistenceServicejava.net.MalformedURLException - if the application cannot access the locationjava.io.IOExceptionjava.io.FileNotFoundExceptionpublic java.lang.String[] getNames(java.net.URL location)
throws java.net.MalformedURLException,
java.io.IOException
getNames in interface javax.jnlp.PersistenceServicejava.net.MalformedURLException - if the application cannot access the locationjava.io.IOExceptionpublic int getTag(java.net.URL location)
throws java.net.MalformedURLException,
java.io.IOException
getTag in interface javax.jnlp.PersistenceServicejava.net.MalformedURLException - if the application cannot access the locationjava.io.IOExceptionpublic void setTag(java.net.URL location,
int tag)
throws java.net.MalformedURLException,
java.io.IOException
setTag in interface javax.jnlp.PersistenceServicejava.net.MalformedURLException - if the application cannot access the locationjava.io.IOException