com.ibm.portal.spa.parser
Interface LocalizationParser
- All Superinterfaces:
- Disposable
-
public interface LocalizationParser
- extends Disposable
- Since:
- 7.0
Method Summary
|
java.lang.String |
getContentType()
Return the mime-type string that this parser matches |
void |
parse(java.io.InputStream in)
Actually parse an input stream, the content of the input stream must
match the mime-type of the parser. |
ErrorHandler |
setErrorHandler(ErrorHandler aHandler)
Replaces the handler that decides how exceptions are processed |
com.ibm.portal.spa.parser.LocalizationContentHandler |
setLocalizationContentHandler(com.ibm.portal.spa.parser.LocalizationContentHandler aHandler)
Associate a LocalizationContentHandler as the callback interface
to the parser. |
URIResolver |
setURIResolver(URIResolver aResolver)
Replaces the URIResolver that resolves relative URLs |
getContentType
java.lang.String getContentType()
- Returns the mime-type string that this parser matches
- Returns:
- mime type string, not null
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
setErrorHandler
ErrorHandler setErrorHandler(ErrorHandler aHandler)
- Replaces the handler that decides how exceptions are processed
- Parameters:
- aHandler - the error handler
- Returns:
- the old handler
setLocalizationContentHandler
com.ibm.portal.spa.parser.LocalizationContentHandler setLocalizationContentHandler(com.ibm.portal.spa.parser.LocalizationContentHandler aHandler)
- Associate a LocalizationContentHandler as the callback interface
to the parser. The parser will then throw events onto this callback that
represent the structure of the document
- Parameters:
- aHandler - callback handler, may be null to remove the
handler
- Returns:
- the handler that was assigned previously
setURIResolver
URIResolver setURIResolver(URIResolver aResolver)
- Replaces the URIResolver that resolves relative URLs
- Parameters:
- aResolver - the resolver
- Returns:
- the previous resolver