de.smartics.xml.resolver
Class FileEntityResolver
java.lang.Object
de.smartics.xml.resolver.FileEntityResolver
-
All Implemented Interfaces:
-
EntityResolver
-
public class FileEntityResolver
-
extends
Object
-
implements
EntityResolver
Resolves the resource either as a file URL or relative to the given class in the class path.
-
Author:
-
Robert Reiner
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileEntityResolver
public FileEntityResolver(EntityResolver parentEntityResolver)
-
Default constructor.
-
Parameters:
-
parentEntityResolver
- the delegate to pass to if this resolver is not responsible. May be
null
.
resolveEntity
public InputSource resolveEntity(String publicId,
String systemId)
throws IOException,
SAXException
-
Resolves the resource either as a file URL or relative to the given class in the class path.
-
-
Specified by:
-
resolveEntity
in interface
EntityResolver
-
-
Parameters:
-
publicId
- The public identifier of the external entity being referenced, or null if none was supplied.
-
systemId
- The system identifier of the external entity being referenced.
-
Returns:
-
the input source for the public and system identifier.
-
Throws:
-
SAXException
- Any SAX exception, possibly wrapping another exception.
-
IOException
- A Java-specific IO exception, possibly the result of creating a new InputStream or Reader for the InputSource.
Copyright © 2010-2013
Kronseder & Reiner GmbH - smartics. All Rights Reserved.