com.izforge.izpack.installer.unpacker
Class ScriptParser

java.lang.Object
  extended by com.izforge.izpack.installer.unpacker.ScriptParser

public class ScriptParser
extends Object

A ParsableFile parser.

Author:
Julien Ponge, Johannes Lehtinen

Constructor Summary
ScriptParser(VariableSubstitutor replacer, PlatformModelMatcher matcher)
          Constructs a new parser.
 
Method Summary
 void parse(ParsableFile parsable)
          Parses a file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScriptParser

public ScriptParser(VariableSubstitutor replacer,
                    PlatformModelMatcher matcher)
Constructs a new parser. The parsable files specified must have pretranslated paths (variables expanded and file separator characters converted if necessary).

Parameters:
replacer - the variable replacer to use
matcher - the platform-model matcher
Method Detail

parse

public void parse(ParsableFile parsable)
           throws Exception
Parses a file.

Parameters:
parsable - the file to parse
Throws:
Exception - if parsing fails


Copyright © 2018. All rights reserved.