Package net.sourceforge.jnlp
Class JNLPFileFactory
java.lang.Object
net.sourceforge.jnlp.JNLPFileFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate a JNLPFile from a URL.create(URL location, String uniqueKey, VersionString version, ParserSettings settings, UpdatePolicy policy) Create a JNLPFile from a URL, parent URLm a version and checking for updates using the specified policy.create(URL location, VersionString version) Create a JNLPFile from a URL and version and checking for updates using the default policy.create(URL location, ParserSettings settings) Create a JNLPFile from a URL checking for updates using the default policy.
-
Constructor Details
-
JNLPFileFactory
public JNLPFileFactory()
-
-
Method Details
-
create
Create a JNLPFile from a URL.- Parameters:
location- the location of the JNLP file- Throws:
IOException- if an IO exception occurredParseException- if the JNLP file was invalid
-
create
Create a JNLPFile from a URL and version and checking for updates using the default policy.- Parameters:
location- the location of the JNLP fileversion- the version of the JNLP file- Throws:
IOException- if an IO exception occurredParseException- if the JNLP file was invalid
-
create
Create a JNLPFile from a URL checking for updates using the default policy.- Parameters:
location- the location of the JNLP filesettings- the parser settings to use while parsing the file- Throws:
IOException- if an IO exception occurredParseException- if the JNLP file was invalid
-
create
public JNLPFile create(URL location, String uniqueKey, VersionString version, ParserSettings settings, UpdatePolicy policy) throws IOException, ParseException Create a JNLPFile from a URL, parent URLm a version and checking for updates using the specified policy.- Parameters:
location- the location of the JNLP fileuniqueKey- A string that uniquely identifies connected instancesversion- the version of the JNLP filesettings- the parser settings to use while parsing the filepolicy- the update policy- Throws:
IOException- if an IO exception occurredParseException- if the JNLP file was invalid
-