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.MalformedURLException
public long create(java.net.URL location, long maxsize) throws java.net.MalformedURLException, java.io.IOException
create
in interface javax.jnlp.PersistenceService
java.net.MalformedURLException
- if the application cannot access the locationjava.io.IOException
public void delete(java.net.URL location) throws java.net.MalformedURLException, java.io.IOException
delete
in interface javax.jnlp.PersistenceService
java.net.MalformedURLException
- if the application cannot access the locationjava.io.IOException
public javax.jnlp.FileContents get(java.net.URL location) throws java.net.MalformedURLException, java.io.IOException, java.io.FileNotFoundException
get
in interface javax.jnlp.PersistenceService
java.net.MalformedURLException
- if the application cannot access the locationjava.io.IOException
java.io.FileNotFoundException
public java.lang.String[] getNames(java.net.URL location) throws java.net.MalformedURLException, java.io.IOException
getNames
in interface javax.jnlp.PersistenceService
java.net.MalformedURLException
- if the application cannot access the locationjava.io.IOException
public int getTag(java.net.URL location) throws java.net.MalformedURLException, java.io.IOException
getTag
in interface javax.jnlp.PersistenceService
java.net.MalformedURLException
- if the application cannot access the locationjava.io.IOException
public void setTag(java.net.URL location, int tag) throws java.net.MalformedURLException, java.io.IOException
setTag
in interface javax.jnlp.PersistenceService
java.net.MalformedURLException
- if the application cannot access the locationjava.io.IOException