ilog.cpl.storage
Class IlpEntityResolver
java.lang.Object
ilog.cpl.storage.IlpEntityResolver
- All Implemented Interfaces:
- EntityResolver
public class IlpEntityResolver
- extends Object
- implements EntityResolver
Entity resolver for handling XML entity names. This class is used to provide
the full file name for external file references occurring in XML files.
Specifically, it will replace any file name for a schema or other XML file
that starts with cpl/schema with the complete file name
$CPLHOME/data/cpl/schema/filename
- Since:
- JTGO 3.0
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IlpEntityResolver
public IlpEntityResolver(IlpURLAccessService urlAccessService)
- Constructor.
- Parameters:
urlAccessService - The URL access service used to provide the file names.
resolveEntity
public InputSource resolveEntity(String publicId,
String systemId)
throws SAXException,
IOException
- Resolves an entity.
- 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 or null if none was supplied.
- Returns:
- An
InputSource object describing the new input source
or null to request that the parser open a regular URI connection to the
system identifier.
- Throws:
SAXException
IOException
Copyright © 1996-2007 ILOG S.A. All rights reserved. Documentation homepage. . All Rights Reserved.