com.etasoft.trans.transaction
Class axCharReaderIterator

java.lang.Object
  extended bycom.etasoft.trans.transaction.axReaderIterator
      extended bycom.etasoft.trans.transaction.axCharReaderIterator

public class axCharReaderIterator
extends axReaderIterator

File stream iterator, uses only relativelly small internal buffer for cache.


Constructor Summary
axCharReaderIterator(axReader reader)
           
 
Method Summary
 void close()
          Used to close reader.
 java.lang.String getBuffer()
           
 boolean hasNext(java.lang.String section)
          Has next character in input.
 java.lang.Object next()
          Get next Character back.
 char nextChar()
          Get next char.
 char peekNextChar()
          Peek at the next char.
 void remove()
          not used.
 void setFilter(java.lang.String filter)
          Filter certain characters from the input stream.
 
Methods inherited from class com.etasoft.trans.transaction.axReaderIterator
getReader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

axCharReaderIterator

public axCharReaderIterator(axReader reader)
Method Detail

getBuffer

public java.lang.String getBuffer()
Specified by:
getBuffer in class axReaderIterator

setFilter

public void setFilter(java.lang.String filter)
Filter certain characters from the input stream.


hasNext

public boolean hasNext(java.lang.String section)
                throws axException
Has next character in input. Section parameter is not used.

Specified by:
hasNext in class axReaderIterator
Throws:
axException

next

public java.lang.Object next()
                      throws axException
Get next Character back.

Specified by:
next in class axReaderIterator
Throws:
axException

nextChar

public char nextChar()
Get next char.

Specified by:
nextChar in class axReaderIterator

peekNextChar

public char peekNextChar()
Peek at the next char.

Specified by:
peekNextChar in class axReaderIterator

remove

public void remove()
not used.

Specified by:
remove in class axReaderIterator

close

public void close()
Used to close reader.

Overrides:
close in class axReaderIterator