|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deckfour.xes.in.XParser
public abstract class XParser
This abstract class describes a parser for reading XES models from a given input stream.
| Constructor Summary | |
|---|---|
XParser()
|
|
| Method Summary | |
|---|---|
abstract String |
author()
Returns the name of the author of this parser. |
abstract boolean |
canParse(File file)
Checks whether this parser can handle the given file. |
abstract String |
description()
Returns a brief description of this parser. |
abstract String |
name()
Returns the name of this parser or, more specifically, the name of the format it can process. |
List<XLog> |
parse(File file)
Parses the given file, and returns the XLog instances extracted. |
abstract List<XLog> |
parse(InputStream is)
Parses the given input stream, and returns the XLog instances extracted. |
String |
toString()
toString() defaults to name(). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public XParser()
| Method Detail |
|---|
public abstract String name()
public abstract String description()
public abstract String author()
public abstract boolean canParse(File file)
file - File to check against parser.
public abstract List<XLog> parse(InputStream is)
throws Exception
is - Stream to read XLog instances from.
Exception
public List<XLog> parse(File file)
throws Exception
IOException.
file - The file to be parsed.
Exception - Raised in case the parser fails, or the
given file cannot be processed.public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||