org.media.mn8.protocol.http
Class TagExtractor

java.lang.Object
  |
  +--org.media.mn8.protocol.http.TagExtractor
Direct Known Subclasses:
LinkExtractor

public class TagExtractor
extends java.lang.Object

Version:
$Revision: 1.1 $ $Date: 2001/12/24 19:13:24 $
Author:
Remus Pereni

Constructor Summary
TagExtractor()
           
TagExtractor(java.lang.String input, boolean withText)
           
 
Method Summary
static int eatWS(java.lang.String text, int start)
           
 boolean endTag()
           
static AttributeSeries getAttributes(java.lang.String tagName, java.lang.String tag)
           
 java.lang.String getTag()
           
static java.lang.String getTagName(java.lang.String tag)
          The expected tag can be of the next form : (<)?(WS)*(/)?name (WS)* (/)? (WS)* (>)?
 java.lang.String getText()
           
 void nextChar()
           
 java.util.Vector parsePage(java.lang.String input)
           
 void previousChar()
           
 boolean startTag()
           
static java.lang.String stripQuotes(java.lang.String src)
           
 void tagFound(java.lang.String tag)
           
 void textFound(java.lang.String text)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TagExtractor

public TagExtractor()

TagExtractor

public TagExtractor(java.lang.String input,
                    boolean withText)
Method Detail

parsePage

public java.util.Vector parsePage(java.lang.String input)

nextChar

public void nextChar()

previousChar

public void previousChar()

startTag

public boolean startTag()

endTag

public boolean endTag()

getTag

public java.lang.String getTag()

getText

public java.lang.String getText()

tagFound

public void tagFound(java.lang.String tag)

textFound

public void textFound(java.lang.String text)

getTagName

public static java.lang.String getTagName(java.lang.String tag)
The expected tag can be of the next form : (<)?(WS)*(/)?name (WS)* (/)? (WS)* (>)?
Parameters:
tag - a String value
Returns:
a String value

getAttributes

public static AttributeSeries getAttributes(java.lang.String tagName,
                                            java.lang.String tag)

eatWS

public static int eatWS(java.lang.String text,
                        int start)

stripQuotes

public static java.lang.String stripQuotes(java.lang.String src)


"Copyright © 2001 Internet Multicasting Services & media.org. All Rights Reserved."