net.sourceforge.yamlbeans.parser
Class Parser

java.lang.Object
  extended by net.sourceforge.yamlbeans.parser.Parser

public class Parser
extends java.lang.Object

Parses a stream of tokens into events.


Nested Class Summary
 class Parser.ParserException
           
 
Constructor Summary
Parser(java.io.Reader reader)
           
Parser(java.io.Reader reader, Version defaultVersion)
           
 
Method Summary
 void close()
           
 int getColumn()
           
 int getLineNumber()
           
 Event getNextEvent()
           
static void main(java.lang.String[] args)
           
 Event peekNextEvent()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Parser

public Parser(java.io.Reader reader)

Parser

public Parser(java.io.Reader reader,
              Version defaultVersion)
Method Detail

getNextEvent

public Event getNextEvent()
                   throws Parser.ParserException,
                          Tokenizer.TokenizerException
Throws:
Parser.ParserException
Tokenizer.TokenizerException

peekNextEvent

public Event peekNextEvent()
                    throws Parser.ParserException,
                           Tokenizer.TokenizerException
Throws:
Parser.ParserException
Tokenizer.TokenizerException

getLineNumber

public int getLineNumber()

getColumn

public int getColumn()

close

public void close()
           throws java.io.IOException
Throws:
java.io.IOException

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception