org.deckfour.xes.in
Class XUniversalParser
java.lang.Object
org.deckfour.xes.in.XUniversalParser
public class XUniversalParser
- extends Object
This 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)
Method Summary |
boolean |
canParse(File file)
Checks whether the given file can be parsed by any parser. |
Collection<XLog> |
parse(File file)
Attempts to parse a collection of XES models
from the given file, using all available parsers. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XUniversalParser
public XUniversalParser()
canParse
public boolean canParse(File file)
- Checks whether the given file can be parsed by any parser.
parse
public Collection<XLog> parse(File file)
throws Exception
- Attempts to parse a collection of XES models
from the given file, using all available parsers.
- Throws:
Exception