com.ibm.portal.spa.parser
Interface StaticPageParser
- All Superinterfaces:
- Disposable, StaticPageFilter
public interface StaticPageParser
- extends StaticPageFilter
Interface to the static page parser. The parser is NOT threadsafe but may be
used to parse multiple documents sequentially. The parser will parse an
InputStream of the matching mime-type and throws parsing events onto
the attached StaticPageContentHandler. Make sure to call
Disposable.dispose() when the parser is no longer used
- Since:
- 6.1.0
Method Summary |
java.lang.String
| getContentType()
Returns the mime-type string that this parser matches
|
void
| java.io.InputStream)">parse(java.io.InputStream in)
Actually parse an input stream, the content of the input stream must
match the mime-type of the parser.
|
getContentType
java.lang.String getContentType()
- Returns the mime-type string that this parser matches
- Returns:
- mime type string, not
null
java.io.InputStream)">
parse
void parse(java.io.InputStream in)
throws java.io.IOException
- Actually parse an input stream, the content of the input stream must
match the mime-type of the parser.
- Parameters:
- in - input stream of the document to be parsed
- Throws:
- java.io.IOException