/** * <b>SAC</b>: Implements {@link * org.w3c.css.sac.Parser#setErrorHandler(ErrorHandler)}. */ public void setErrorHandler(ErrorHandler handler) { parser.setErrorHandler(handler); }
/** * <b>SAC</b>: Implements {@link * org.w3c.css.sac.Parser#setErrorHandler(ErrorHandler)}. */ public void setErrorHandler(ErrorHandler handler) { parser.setErrorHandler(handler); }
/** * <b>SAC</b>: Implements {@link * org.w3c.css.sac.Parser#setErrorHandler(ErrorHandler)}. */ public void setErrorHandler(ErrorHandler handler) { parser.setErrorHandler(handler); }
public void setErrorHandler(final ErrorHandler eh) { parser_.setErrorHandler(eh); }
StyleSheet parse( InputStream inputStream, String uri, ResourceLoader loader ) throws CSSException, IOException { InputSource source = new InputSource(); source.setByteStream( inputStream ); source.setEncoding( CSS_ENCODING ); source.setURI( uri ); parser.setConditionFactory( new ConditionFactoryImpl( this ) ); parser.setSelectorFactory( new SelectorFactoryImpl( this ) ); DocumentHandlerImpl documentHandler = new DocumentHandlerImpl( this, loader ); parser.setDocumentHandler( documentHandler ); parser.setErrorHandler( new ErrorHandlerImpl( this ) ); // TODO [rst] Batik parser throws ParseException try { parser.parseStyleSheet( source ); } catch( ParseException e ) { throw new CSSException( e ); } return documentHandler.getStyleSheet(); }
handler.init( StyleKeyRegistry.getRegistry(), manager, key, version, null ); parser.setDocumentHandler( handler ); parser.setErrorHandler( handler );