[Jportlet-devel] AbstractXslPortlet change request
Brought to you by:
tchbansi
From: Philipp H. <jpo...@li...> - 2003-08-13 09:25:54
|
Wouldn't it be nice if we change openXmlInputStream and openXslInputStream to something like openXmlSource and return a javax.xml.transform.Source. For compatibility we could keep the openXmlInputStream functions and call them in AbstractXslPortlet. current: protected abstract InputStream openXmlInputStream( PortletRequest request ) throws PortletException, IOException; protected abstract InputStream openXslInputStream( PortletRequest request ) throws PortletException, IOException; change to: protected InputStream openXmlInputStream( PortletRequest request ) throws PortletException, IOException { throw new PortletException ("openXmlInputStream not implemented"); } protected InputStream openXslInputStream( PortletRequest request ) throws PortletException, IOException { throw new PortletException ("openXslInputStream not implemented"); } protected Source openXmlSource( PortletRequest request ) throws PortletException, IOException { return new StreamSource (openXmlInputStream (request)); } protected Source openXslSource( PortletRequest request ) throws PortletException, IOException { return new StreamSource (openXslInputStream (request)); } philipp |