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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TagExtractor
public TagExtractor()
TagExtractor
public TagExtractor(java.lang.String input,
boolean withText)
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."