cz.cmc.tcgui.datadef.parser
Class XtcParser

java.lang.Object
  extended bycz.cmc.tcgui.datadef.parser.XtcParser

public class XtcParser
extends Object


Field Summary
protected  InputStream inputStream
          The xtc file to parse.
protected  String version
          Version of the xtc document being parsed.
 
Constructor Summary
XtcParser(InputStream inputStream)
          Creates an XtcParser for a specified input stream.
 
Method Summary
static void main(String[] args)
          Serves as a testing function
 TCObject parse()
          Parses the file of this Parser.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

version

protected String version
Version of the xtc document being parsed.


inputStream

protected InputStream inputStream
The xtc file to parse.

Constructor Detail

XtcParser

public XtcParser(InputStream inputStream)
Creates an XtcParser for a specified input stream. The stream corresponds to a tc object.

Method Detail

parse

public TCObject parse()
               throws Exception
Parses the file of this Parser.

Throws:
Exception

main

public static void main(String[] args)
                 throws Exception
Serves as a testing function

Throws:
Exception