net.sourceforge.yamlbeans.tokenizer
Class Tokenizer

java.lang.Object
  extended by net.sourceforge.yamlbeans.tokenizer.Tokenizer

public class Tokenizer
extends java.lang.Object

Interprets a YAML document as a stream of tokens.


Nested Class Summary
 class Tokenizer.TokenizerException
           
 
Constructor Summary
Tokenizer(java.io.Reader reader)
           
Tokenizer(java.lang.String yaml)
           
 
Method Summary
 void close()
           
 int getColumn()
           
 int getLineNumber()
           
 Token getNextToken()
           
 java.util.Iterator iterator()
           
static void main(java.lang.String[] args)
           
 Token peekNextToken()
           
 TokenType peekNextTokenType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Tokenizer

public Tokenizer(java.io.Reader reader)

Tokenizer

public Tokenizer(java.lang.String yaml)
Method Detail

peekNextToken

public Token peekNextToken()
                    throws Tokenizer.TokenizerException
Throws:
Tokenizer.TokenizerException

peekNextTokenType

public TokenType peekNextTokenType()
                            throws Tokenizer.TokenizerException
Throws:
Tokenizer.TokenizerException

getNextToken

public Token getNextToken()
                   throws Tokenizer.TokenizerException
Throws:
Tokenizer.TokenizerException

iterator

public java.util.Iterator iterator()

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