public class DocTypes extends Object implements URIResolver, EntityResolver
URIResolver.resolve(String,String)
and
EntityResolver.resolveEntity(String,String)
The current bandm public identifier is currently defined in
bandm.eu.tools.dtd.Utilities
, but should perhapes be shifted here.
A public id (iff present) is matched against this FPI,
If not successful, the system id is matched against the URL
as given in URI_BANDM_DOCTYPES
and URI_HTTP_BANDM_DOCTYPES
.
Modifier and Type | Field and Description |
---|---|
static String |
bandmDoctypes_local |
static String |
meta_module_name |
static String |
meta_module_ns_uri |
static String |
meta_module_tag_inline |
static String |
meta_module_tag_nonstructured_target |
static String |
URI_BANDM_DOCTYPES |
static String |
URI_HTTP_BANDM_DOCTYPES |
Constructor and Description |
---|
DocTypes() |
Modifier and Type | Method and Description |
---|---|
static Location<XMLDocumentIdentifier> |
local2www(Location<XMLDocumentIdentifier> loc)
currently only the "system" part is analysed and replaced by the www access.
|
static XMLDocumentIdentifier |
local2www(XMLDocumentIdentifier doc)
currently only the "system" part is analysed and replaced by the www access.
|
InputStream |
resolve_to_stream(URI href) |
Source |
resolve(String href,
String base)
Defined in javax.xml.transform.URIResolver
|
InputSource |
resolveEntity(String publicId,
String systemId)
Matches something like
|
protected InputStream |
test_fpi(String publicId) |
protected InputStream |
test_uri(String href,
String prefix) |
public static final String URI_BANDM_DOCTYPES
public static final String URI_HTTP_BANDM_DOCTYPES
public static final String bandmDoctypes_local
public static final String meta_module_ns_uri
public static final String meta_module_name
public static final String meta_module_tag_nonstructured_target
public static final String meta_module_tag_inline
public Source resolve(String href, String base)
resolve
in interface URIResolver
public InputStream resolve_to_stream(URI href)
protected InputStream test_uri(String href, String prefix)
public InputSource resolveEntity(String publicId, String systemId)
+//IDN bandm.eu//DTD a/b/c/d.dtd//en//1.0and maps it to resource
[classtree]/tools/doctypes/Doctypes.getResource(a/b/c/d.dtd)Defined in org.xml.sax.EntityResolver
resolveEntity
in interface EntityResolver
protected InputStream test_fpi(String publicId)
public static XMLDocumentIdentifier local2www(XMLDocumentIdentifier doc)
public static Location<XMLDocumentIdentifier> local2www(Location<XMLDocumentIdentifier> loc)
see also the complete user documentation .