Class ParserUtil
- java.lang.Object
-
- edu.uiuc.ncsa.security.util.functor.parser.event.ParserUtil
-
public class ParserUtil extends Object
Created by Jeff Gaynor
on 9/20/18 at 1:10 PM
-
-
Field Summary
Fields Modifier and Type Field Description static StringBATCH_FILE_COMMENT_CHARstatic StringBATCH_FILE_LINE_TERMINATION
-
Constructor Summary
Constructors Constructor Description ParserUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidmain(String[] args)static List<String>processInput(Reader reader)static List<String>processInput(Reader reader, boolean isStrict)Takes a reader that contains a command file and returns a list of executable string.
-
-
-
Method Detail
-
main
public static void main(String[] args)
-
processInput
public static List<String> processInput(Reader reader) throws Throwable
- Throws:
Throwable
-
processInput
public static List<String> processInput(Reader reader, boolean isStrict) throws Throwable
Takes a reader that contains a command file and returns a list of executable string. You can pass these to a parser. Note that you should parse each command then inspect the resultingAbstractHandlerthat results from parsing. If the isStrict flag is true, then this will check if there were no terminators and throw an exception if no commands were found.- Parameters:
reader-isStrict-- Returns:
- Throws:
Throwable
-
-