public class DefaultHTMLTokenizer extends Object implements HTMLTokenizer
HTMLTokenizer.
Created: 15.06.2007 05:56:21CLOSED_TAG, COMMENT, DOCUMENT_TYPE, END, END_TAG, PROCESSING_INSTRUCTION, SCRIPT, START_TAG, TEXT| Constructor and Description |
|---|
DefaultHTMLTokenizer(Reader reader) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
attributes()
In case of non-tag tokens or empty tags, an empty map is returned.
|
String |
name() |
int |
nextToken() |
void |
readUntil(String endText) |
void |
readUntil(String delimiter,
boolean includeDelimiter) |
void |
readUntil(String delimiter,
boolean caseSensitive,
boolean includeDelimiter) |
String |
text() |
int |
tokenType() |
public DefaultHTMLTokenizer(Reader reader)
public int nextToken()
throws IOException,
ParseException
nextToken in interface HTMLTokenizerIOExceptionParseExceptionpublic int tokenType()
tokenType in interface HTMLTokenizerpublic String name()
name in interface HTMLTokenizerpublic String text()
text in interface HTMLTokenizerpublic Map<String,String> attributes()
attributes in interface HTMLTokenizerpublic void readUntil(String endText) throws IOException
IOExceptionpublic void readUntil(String delimiter, boolean includeDelimiter) throws IOException
IOExceptionpublic void readUntil(String delimiter, boolean caseSensitive, boolean includeDelimiter) throws IOException
IOExceptionCopyright © 2006–2016 Volker Bergmann. All rights reserved.