org.eclipse.mylyn.wikitext.core.util
Class IgnoreDtdEntityResolver

java.lang.Object
  extended by org.eclipse.mylyn.wikitext.core.util.IgnoreDtdEntityResolver
All Implemented Interfaces:
EntityResolver

public class IgnoreDtdEntityResolver
extends Object
implements EntityResolver

An entity resolver that resolves all requests for DTD content, thus preventing network access when resolving DTDs.

Since:
1.0
Author:
David Green

Field Summary
protected static IgnoreDtdEntityResolver instance
           
 
Constructor Summary
IgnoreDtdEntityResolver()
           
 
Method Summary
static IgnoreDtdEntityResolver getInstance()
           
 InputSource resolveEntity(String publicId, String systemId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

protected static final IgnoreDtdEntityResolver instance
Constructor Detail

IgnoreDtdEntityResolver

public IgnoreDtdEntityResolver()
Method Detail

getInstance

public static IgnoreDtdEntityResolver getInstance()

resolveEntity

public InputSource resolveEntity(String publicId,
                                 String systemId)
                          throws SAXException,
                                 IOException
Specified by:
resolveEntity in interface EntityResolver
Throws:
SAXException
IOException


Copyright © 2011 FuseSource, Corp.. All Rights Reserved.