public interface PageParserSelector
Modifier and Type | Method and Description |
---|---|
PageParser |
getPageParser(java.lang.String contentType)
Create a PageParser suitable for the given content-type.
|
boolean |
shouldParsePage(java.lang.String contentType)
Determine whether a Page of given content-type should be parsed or not.
|
boolean shouldParsePage(java.lang.String contentType)
PageParser getPageParser(java.lang.String contentType)
For example, if the supplied parameter is text/html
a parser shall be returned that can parse HTML accordingly.
contentType
- The MIME content-type of the data to be parsedPageParser
for reading data