org.deckfour.xes.in
Class XUniversalParser

java.lang.Object
  extended by 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)

Constructor Summary
XUniversalParser()
           
 
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
 

Constructor Detail

XUniversalParser

public XUniversalParser()
Method Detail

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