public interface DocLocator
DefaultDocLocator
, implements
local file access, but other implementations can be imagined that
read/write files over the network.Modifier and Type | Method and Description |
---|---|
InputSource |
getInputSource(String sourcePath,
boolean removeDoctypeDecl)
Retrieve the data stream for an XML source document.
|
StructuredStore |
getLazyStore(String indexConfigPath,
String indexName,
String sourcePath,
Templates preFilter,
boolean removeDoctypeDecl)
Search for a StructuredStore containing the "lazy" or persistent
representation of a given document.
|
void |
setServlet(TextServlet servlet)
Attach this locator to a specific servlet, which can be used to
provide, among other thigns, path mapping services.
|
void setServlet(TextServlet servlet)
servlet
- Servlet to attach toStructuredStore getLazyStore(String indexConfigPath, String indexName, String sourcePath, Templates preFilter, boolean removeDoctypeDecl) throws IOException
getInputSource(String, boolean)
will be called as a fall-back.sourcePath
- Path to the source documentindexConfigPath
- Path to the index configuration fileindexName
- Name of the index being searchedpreFilter
- Stylesheet to filter the document withremoveDoctypeDecl
- Set to true to remove DOCTYPE declaration from
the XML document.IOException
InputSource getInputSource(String sourcePath, boolean removeDoctypeDecl) throws IOException
sourcePath
- Path to the source documentremoveDoctypeDecl
- Set to true to remove DOCTYPE declaration from
the XML document.IOException