URIResolver


URIResolver javax.xml.transform

Java 1.4

This interface allows an application to tell a transformer how to resolve the URIs that appear in an XSLT stylesheet. If you pass a URIResolver to the setURIResolver( ) method of a TRansformer or transformerFactory then when the transformer or TRansformerFactory encounters a URI, it first passes that URI, along with the base URI to the resolve( ) method of the URIResolver . If resolve( ) returns a Source object, then the transformer will use that Source . If a transformer or transformerFactory has no URIResolver registered, or if the resolve( ) method returns null , then the tranformer or factory will attempt to resolve the URI itself.

 public interface  URIResolver  {  // Public Instance Methods  Source  resolve  (String  href  , String  base  ) throws TransformerException;   } 

Passed To

transformer.setURIResolver( ) , transformerFactory.setURIResolver( )

Returned By

transformer.getURIResolver( ) , transformerFactory.getURIResolver( )



Java In A Nutshell
Java In A Nutshell, 5th Edition
ISBN: 0596007736
EAN: 2147483647
Year: 2004
Pages: 1220

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net