Class JNLPMatcher

java.lang.Object
net.sourceforge.jnlp.JNLPMatcher

public final class JNLPMatcher extends Object
To compare launching JNLP file with signed APPLICATION.JNLP or APPLICATION_TEMPLATE.jnlp. Used by net.sourceforge.jnlp.runtime.JNLPCLassLoader
  • Constructor Details

    • JNLPMatcher

      public JNLPMatcher(InputStream appTemplate, InputStream launchJNLP, boolean isTemplate, ParserSettings p) throws JNLPMatcherException
      Public constructor
      Parameters:
      appTemplate - the reader stream of the signed APPLICATION.jnlp or APPLICATION_TEMPLATE.jnlp
      launchJNLP - the reader stream of the launching JNLP file
      isTemplate - a boolean that specifies if appTemplateFile is a template
      p - settings of parser
      Throws:
      JNLPMatcherException - if IOException, XMLParseException is thrown during parsing; Or launchJNLP/appTemplate is null
  • Method Details

    • isMatch

      public boolean isMatch()
      Compares both JNLP files
      Returns:
      true if both JNLP files are 'matched', otherwise false