public class FilteringHTMLTokenizer extends Object implements HTMLTokenizer
HTMLTokenizer proxy that returns only the tokens that match a Filter.
Created: 16.06.2007 05:50:50CLOSED_TAG, COMMENT, DOCUMENT_TYPE, END, END_TAG, PROCESSING_INSTRUCTION, SCRIPT, START_TAG, TEXT| Constructor and Description |
|---|
FilteringHTMLTokenizer(HTMLTokenizer source,
org.databene.commons.Filter<HTMLTokenizer> filter) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
attributes() |
String |
name() |
int |
nextToken() |
String |
text() |
int |
tokenType() |
public FilteringHTMLTokenizer(HTMLTokenizer source, org.databene.commons.Filter<HTMLTokenizer> filter)
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 HTMLTokenizerCopyright © 2006–2016 Volker Bergmann. All rights reserved.