com.github.abrarsyed.jastyle
Class ASStreamIterator

java.lang.Object
  extended by com.github.abrarsyed.jastyle.ASStreamIterator
All Implemented Interfaces:
ASSourceIterator

public class ASStreamIterator
extends java.lang.Object
implements ASSourceIterator


Constructor Summary
ASStreamIterator(java.io.Reader in)
           
 
Method Summary
 java.lang.String getOutputEOL()
           
 boolean hasMoreLines()
           
 java.lang.StringBuilder nextLine()
           
 java.lang.StringBuilder nextLine(boolean emptyLineWasDeleted)
          read the input stream, delete any end of line characters, and build a String that contains the input line.
 java.lang.StringBuilder peekNextLine()
           
 void peekReset()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ASStreamIterator

public ASStreamIterator(java.io.Reader in)
Method Detail

nextLine

public java.lang.StringBuilder nextLine()
Specified by:
nextLine in interface ASSourceIterator

nextLine

public java.lang.StringBuilder nextLine(boolean emptyLineWasDeleted)
read the input stream, delete any end of line characters, and build a String that contains the input line.

Specified by:
nextLine in interface ASSourceIterator
Returns:
String containing the next input line minus any end of line characters

peekNextLine

public java.lang.StringBuilder peekNextLine()
Specified by:
peekNextLine in interface ASSourceIterator

hasMoreLines

public boolean hasMoreLines()
Specified by:
hasMoreLines in interface ASSourceIterator

getOutputEOL

public java.lang.String getOutputEOL()
Specified by:
getOutputEOL in interface ASSourceIterator

peekReset

public void peekReset()
Specified by:
peekReset in interface ASSourceIterator