sk.uniba.euromath.document
Class EmEntityResolver

java.lang.Object
  extended by sk.uniba.euromath.document.EmEntityResolver
All Implemented Interfaces:
EntityResolver

public final class EmEntityResolver
extends Object
implements EntityResolver

Implements the entity resolver, that resolves entity references to locally stored entities, when possible. This mapping is defined in config file. If no mapping is possible then resolver roots local URI in given Eclipse project path.

Author:
Martin Vysny

Field Summary
 URI root
          Directory where the document is located.
 
Constructor Summary
EmEntityResolver(URLDir root)
          Constructor.
 
Method Summary
 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

root

public final URI root
Directory where the document is located.

Constructor Detail

EmEntityResolver

public EmEntityResolver(URLDir root)
Constructor.

Parameters:
root - directory where the document is located.
Method Detail

resolveEntity

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


Copyright © 2003-2006 null. All Rights Reserved.