Package org.deckfour.xes.in
Class XUniversalParser
- java.lang.Object
-
- org.deckfour.xes.in.XUniversalParser
-
public class XUniversalParser extends java.lang.ObjectThis class implements a universal parser, using the parser registry to find an appropriate parser for extracting an XES model from any given file. May be used as a convenience method for applications.- Author:
- Christian W. Guenther (christian@deckfour.org)
-
-
Constructor Summary
Constructors Constructor Description XUniversalParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanParse(java.io.File file)Checks whether the given file can be parsed by any parser.java.util.Collection<XLog>parse(java.io.File file)Attempts to parse a collection of XES models from the given file, using all available parsers.
-
-
-
Method Detail
-
canParse
public boolean canParse(java.io.File file)
Checks whether the given file can be parsed by any parser.
-
parse
public java.util.Collection<XLog> parse(java.io.File file) throws java.lang.Exception
Attempts to parse a collection of XES models from the given file, using all available parsers.- Throws:
java.lang.Exception
-
-