net.ontopia.topicmaps.xml
Class TopicMapDTDEntityResolver

java.lang.Object
  extended by net.ontopia.topicmaps.xml.TopicMapDTDEntityResolver
All Implemented Interfaces:
org.xml.sax.EntityResolver

public class TopicMapDTDEntityResolver
extends java.lang.Object
implements org.xml.sax.EntityResolver

INTERNAL: SAX entity resolver that only follows doctype declarations referencing the ISO 13250 and XTM 1.0 DTDs using public ids if the references actually point to something that can be accessed. If not an empty input source is returned instead.

This behaviour is activated for references to system ids ending in '.dtd' and to the following public ids:

   "-//TopicMaps.Org//DTD XML Topic Map (XTM) 1.0//EN"
   "+//IDN ontopia.net//DTD Topic Map Interchange Format (Strict 1.0)//EN"
 

Since:
2.0.3

Constructor Summary
TopicMapDTDEntityResolver()
           
 
Method Summary
 org.xml.sax.InputSource resolveEntity(java.lang.String public_id, java.lang.String system_id)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TopicMapDTDEntityResolver

public TopicMapDTDEntityResolver()
Method Detail

resolveEntity

public org.xml.sax.InputSource resolveEntity(java.lang.String public_id,
                                             java.lang.String system_id)
Specified by:
resolveEntity in interface org.xml.sax.EntityResolver


Copyright © 2000-2012 Ontopia.