Class JNLPFileFactory

java.lang.Object
net.sourceforge.jnlp.JNLPFileFactory

public class JNLPFileFactory extends Object
  • Constructor Details

    • JNLPFileFactory

      public JNLPFileFactory()
  • Method Details

    • create

      public JNLPFile create(URL location) throws IOException, ParseException
      Create a JNLPFile from a URL.
      Parameters:
      location - the location of the JNLP file
      Throws:
      IOException - if an IO exception occurred
      ParseException - if the JNLP file was invalid
    • create

      public JNLPFile create(URL location, VersionString version) throws IOException, ParseException
      Create a JNLPFile from a URL and version and checking for updates using the default policy.
      Parameters:
      location - the location of the JNLP file
      version - the version of the JNLP file
      Throws:
      IOException - if an IO exception occurred
      ParseException - if the JNLP file was invalid
    • create

      public JNLPFile create(URL location, ParserSettings settings) throws IOException, ParseException
      Create a JNLPFile from a URL checking for updates using the default policy.
      Parameters:
      location - the location of the JNLP file
      settings - the parser settings to use while parsing the file
      Throws:
      IOException - if an IO exception occurred
      ParseException - 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 file
      uniqueKey - A string that uniquely identifies connected instances
      version - the version of the JNLP file
      settings - the parser settings to use while parsing the file
      policy - the update policy
      Throws:
      IOException - if an IO exception occurred
      ParseException - if the JNLP file was invalid