public interface URIResolver
一个实现这个接口的对象可以被处理器称为转一个URI用于document(),XSL:进口,或是包含到源对象。
Source resolve(String href, String base) throws TransformerException
href
的href属性,这可能是相对或绝对。
base
的基URI的第一个参数是绝对需要绝对URI。
TransformerException
-如果发生错误,当试图解决的URI。
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.