Class COM.ibm.jaws.motk.CharStringProducer
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class COM.ibm.jaws.motk.CharStringProducer

java.lang.Object
   |
   +----COM.ibm.jaws.motk.StringProducer
           |
           +----COM.ibm.jaws.motk.CharStringProducer

public class CharStringProducer
extends StringProducer
Produces strings from a CharProducer based on a specified set of delimiter characters. If the string contains any delimiter characters that are not supposed to delimit parts of the string then they must be proceeded by the designated escape character.

Variable Index

 o allowWhiteSpace
 o atBegin
 o atEnd
 o atEOF
 o beginChar
 o buf
 o endChar
 o escape
 o peeked
 o peekedBuf
 o peekedResult
 o separatorChar
 o tokens

Constructor Index

 o CharStringProducer(CharProducer)
 o CharStringProducer(CharProducer, char, char, char, char, boolean)

Method Index

 o atEnd()
 o atEOF()
 o peek()
 o read()
Returns the next String from the input source.
 o read(StringBuffer)
Appends the next String from the input source to the end of the specified buffer.
 o readBegin()
 o readEnd()

Variables

 o tokens
  protected Tokenizer tokens
 o allowWhiteSpace
  protected boolean allowWhiteSpace
 o atEnd
  protected boolean atEnd
 o atEOF
  protected boolean atEOF
 o atBegin
  protected boolean atBegin
 o buf
  protected StringBuffer buf
 o separatorChar
  protected char separatorChar
 o beginChar
  protected char beginChar
 o endChar
  protected char endChar
 o escape
  protected char escape
 o peeked
  protected boolean peeked
 o peekedBuf
  protected StringBuffer peekedBuf
 o peekedResult
  protected int peekedResult

Constructors

 o CharStringProducer
  public CharStringProducer(CharProducer charIn)
 o CharStringProducer
  public CharStringProducer(CharProducer charIn,
                            char separatorChar,
                            char beginChar,
                            char endChar,
                            char escape,
                            boolean allowWhiteSpace)

Methods

 o read
  public void read(StringBuffer buf) throws IOException
Appends the next String from the input source to the end of the specified buffer.
Overrides:
read in class StringProducer
 o read
  public String read() throws IOException
Returns the next String from the input source.
Overrides:
read in class StringProducer
 o peek
  protected int peek() throws IOException
 o readBegin
  public void readBegin() throws IOException
Overrides:
readBegin in class StringProducer
 o atEnd
  public boolean atEnd() throws IOException
Overrides:
atEnd in class StringProducer
 o readEnd
  public void readEnd() throws IOException
Overrides:
readEnd in class StringProducer
 o atEOF
  public boolean atEOF() throws IOException
Overrides:
atEOF in class StringProducer

All Packages  Class Hierarchy  This Package  Previous  Next  Index