org.yaml.snakeyaml.reader
Class Reader

java.lang.Object
  extended by org.yaml.snakeyaml.reader.Reader

public class Reader
extends Object

Reader: determines the data encoding and converts it to unicode, checks if characters are in allowed range, adds '\0' to the end.

See Also:
PyYAML for more information

Constructor Summary
Reader(Reader reader)
           
Reader(String stream)
           
 
Method Summary
 void forward()
           
 void forward(int length)
          read the next length characters and move the pointer.
 int getColumn()
           
 Charset getEncoding()
           
 int getIndex()
           
 int getLine()
           
 Mark getMark()
           
 char peek()
           
 char peek(int index)
          Peek the next index-th character
 String prefix(int length)
          peek the next length characters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Reader

public Reader(String stream)

Reader

public Reader(Reader reader)
Method Detail

getMark

public Mark getMark()

forward

public void forward()

forward

public void forward(int length)
read the next length characters and move the pointer.

Parameters:
length -

peek

public char peek()

peek

public char peek(int index)
Peek the next index-th character

Parameters:
index -
Returns:

prefix

public String prefix(int length)
peek the next length characters

Parameters:
length -
Returns:

getColumn

public int getColumn()

getEncoding

public Charset getEncoding()

getIndex

public int getIndex()

getLine

public int getLine()


Copyright © 2008-2010. All Rights Reserved.