Package com.jcabi.xml
Class FileSources
- java.lang.Object
-
- com.jcabi.xml.FileSources
-
- All Implemented Interfaces:
Sources
,URIResolver
public final class FileSources extends Object implements Sources
Sources in file system. If you have some resources in files, just configure your XSL with this "sources":XSL xsl = new XSLDocument(input).with( new FileSources("/tmp/my-resources") );
- Since:
- 0.18
-
-
Constructor Summary
Constructors Constructor Description FileSources()
Public ctor.FileSources(File dir)
Public ctor.FileSources(String dir)
Public ctor.
-
-
-
Method Detail
-
resolve
public Source resolve(String href, String base) throws TransformerException
- Specified by:
resolve
in interfaceURIResolver
- Throws:
TransformerException
-
-