Class XUniversalParser


  • public class XUniversalParser
    extends java.lang.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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean canParse​(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.
      • 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​(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