org.media.mn8.protocol.http
Class TagExtractor

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

public class TagExtractor
extends Object

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

Constructor Summary
TagExtractor()
           
TagExtractor(String input, boolean withText)
           
 
Method Summary
static int eatWS(String text, int start)
           
 boolean endTag()
           
static AttributeSeries getAttributes(String tagName, String tag)
           
 String getTag()
           
static String getTagName(String tag)
          The expected tag can be of the next form : (<)?(WS)*(/)?name (WS)* (/)? (WS)* (>)?
 String getText()
           
 void nextChar()
           
 Vector parsePage(String input)
           
 void previousChar()
           
 boolean startTag()
           
static String stripQuotes(String src)
           
 void tagFound(String tag)
           
 void textFound(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(String input,
                    boolean withText)
Method Detail

parsePage

public Vector parsePage(String input)

nextChar

public void nextChar()

previousChar

public void previousChar()

startTag

public boolean startTag()

endTag

public boolean endTag()

getTag

public String getTag()

getText

public String getText()

tagFound

public void tagFound(String tag)

textFound

public void textFound(String text)

getTagName

public static String getTagName(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(String tagName,
                                            String tag)

eatWS

public static int eatWS(String text,
                        int start)

stripQuotes

public static String stripQuotes(String src)


"Copyright © 2000-2002 Internet Multicasting Services, media.org & noLimits Technologies. All Rights Reserved."