org.openpipeline.pipeline.docfilter
Class TagLexer

java.lang.Object
  extended by org.openpipeline.pipeline.docfilter.TagLexer

public final class TagLexer
extends Object


Field Summary
static int EOF
           
static int IDENTIFIER
           
static int QUOTEDSTRING
           
static String[] resultAsString
           
static int TOKEN
           
static int YYINITIAL
          lexical states
 
Constructor Summary
TagLexer(InputStream in)
          Creates a new scanner.
TagLexer(Reader in)
          Creates a new scanner There is also a java.io.InputStream version of this constructor.
 
Method Summary
 void parse(HashMap hashMap)
          Parse the input tag into name/value pairs and add to the HashMap.
 int yylex()
          Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs.
 void yypushback(int number)
          Pushes the specified amount of characters back into the input stream.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

YYINITIAL

public static final int YYINITIAL
lexical states

See Also:
Constant Field Values

EOF

public static final int EOF
See Also:
Constant Field Values

IDENTIFIER

public static final int IDENTIFIER
See Also:
Constant Field Values

QUOTEDSTRING

public static final int QUOTEDSTRING
See Also:
Constant Field Values

TOKEN

public static final int TOKEN
See Also:
Constant Field Values

resultAsString

public static final String[] resultAsString
Constructor Detail

TagLexer

public TagLexer(Reader in)
Creates a new scanner There is also a java.io.InputStream version of this constructor.

Parameters:
in - the java.io.Reader to read input from.

TagLexer

public TagLexer(InputStream in)
Creates a new scanner. There is also java.io.Reader version of this constructor.

Parameters:
in - the java.io.Inputstream to read input from.
Method Detail

parse

public void parse(HashMap hashMap)
           throws IOException
Parse the input tag into name/value pairs and add to the HashMap.

Throws:
IOException

yypushback

public void yypushback(int number)
Pushes the specified amount of characters back into the input stream. They will be read again by then next call of the scanning method

Parameters:
number - the number of characters to be read again. This number must not be greater than yylength()!

yylex

public int yylex()
          throws IOException
Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs.

Returns:
the next token
Throws:
IOException - if any I/O-Error occurs