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

Class COM.ibm.jaws.motk.StringProducer

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

public class StringProducer
extends Object
Implements a input sequence of strings that may contain sub-sequences. The following pseudo-grammer is supported.
source = dtoken EOF
dtoken = token separator | begin | end 
begin = ; a single specified character
end = ; a single specified character
separator = ; a single specified character
token = ; any sequence of characters including escaped versions of the
          begin, end, and separator characters
If white space is allowed then any amount of white space may be inserted between any two elements except inside a token. Whitespace that is at the begining or end of a token will need to be escaped or it will be lost. begin, end or separator characters that occur in a token must be escaped.

Note: begin marks are fully supported and, if present, they must be explicity read with readBegin. However, they need not be present at all.


Constructor Index

 o StringProducer()

Method Index

 o atEnd()
 o atEOF()
 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()

Constructors

 o StringProducer
  public StringProducer()

Methods

 o read
  public String read() throws IOException
Returns the next String from the input source. If the input source is positioned at the EOF or at an end mark then an EOFException will be raised.
 o read
  public abstract void read(StringBuffer buf) throws IOException
Appends the next String from the input source to the end of the specified buffer. If the input source is positioned at the EOF or at an end mark then an EOFException will be raised.
 o readBegin
  public abstract void readBegin() throws IOException
 o atEnd
  public abstract boolean atEnd() throws IOException
 o readEnd
  public abstract void readEnd() throws IOException
 o atEOF
  public abstract boolean atEOF() throws IOException

All Packages  Class Hierarchy  This Package  Previous  Next  Index