netx.jnlp.services

Class XPersistenceService

Implemented Interfaces:
javax.jnlp.PersistenceService

(package private) class XPersistenceService
extends java.lang.Object
implements javax.jnlp.PersistenceService

The BasicService JNLP service.
Version:
$Revision: 1.7 $
Author:
Jon A. Maxwell (JAM) - initial author

Constructor Summary

XPersistenceService()

Method Summary

protected void
checkLocation(URL location)
Checks whether the application has access to URL area requested.
long
create(URL location, long maxsize)
void
delete(URL location)
javax.jnlp.FileContents
get(URL location)
String[]
getNames(URL location)
int
getTag(URL location)
void
setTag(URL location, int tag)
protected File
toCacheFile(URL location)
Converts a URL into a file in the persistence store.

Constructor Details

XPersistenceService

protected XPersistenceService()

Method Details

checkLocation

protected void checkLocation(URL location)
            throws MalformedURLException
Checks whether the application has access to URL area requested. If the method returns normally then the specified location can be accessed by the current application.

create

public long create(URL location,
                   long maxsize)
            throws MalformedURLException,
                   IOException
Returns:
the maximum size of storage that got granted, in bytes

delete

public void delete(URL location)
            throws MalformedURLException,
                   IOException

get

public javax.jnlp.FileContents get(URL location)
            throws MalformedURLException,
                   IOException,
                   FileNotFoundException

getNames

public String[] getNames(URL location)
            throws MalformedURLException,
                   IOException

getTag

public int getTag(URL location)
            throws MalformedURLException,
                   IOException

setTag

public void setTag(URL location,
                   int tag)
            throws MalformedURLException,
                   IOException

toCacheFile

protected File toCacheFile(URL location)
            throws MalformedURLException
Converts a URL into a file in the persistence store.
Returns:
the file