org.sonar.squid.text
Class CodeReader

java.lang.Object
  extended by org.sonar.squid.text.CodeReader

public class CodeReader
extends Object


Constructor Summary
CodeReader(Reader reader)
           
CodeReader(String code)
           
 
Method Summary
 void close()
           
 int lastChar()
           
 int lastChar(int index)
           
 void mark(int readAheadLimit)
           
 int peek()
           
 char[] peek(int index)
           
 int pop()
           
 String readTo(EndTokenMatcher matcher)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CodeReader

public CodeReader(Reader reader)

CodeReader

public CodeReader(String code)
Method Detail

mark

public final void mark(int readAheadLimit)
                throws IOException
Throws:
IOException

lastChar

public final int lastChar()

peek

public final int peek()

pop

public final int pop()

readTo

public String readTo(EndTokenMatcher matcher)

close

public void close()

peek

public char[] peek(int index)

lastChar

public int lastChar(int index)


Copyright © 2009 SonarSource SA. All Rights Reserved.