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