public class

FileFinderEntityResolver

extends Object
implements EntityResolver
java.lang.Object
   ↳ com.microstrategy.utils.xml.FileFinderEntityResolver
Known Direct Subclasses

Class Overview

This EntityResolver tries to create the InputStream using the FileFinder, which basically looks for files in the class-path.

Summary

Public Constructors
FileFinderEntityResolver()
Public Methods
InputSource resolveEntity(String publicId, String systemId)
Protected Methods
String getFileName(String publicId, String systemId)
Resolves the file name from the systemId.
InputStream getInputStream(String fileName)
Returns the InputStream for the given fileName.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.xml.sax.EntityResolver

Public Constructors

public FileFinderEntityResolver ()

Public Methods

public InputSource resolveEntity (String publicId, String systemId)

Throws
IOException
SAXException

Protected Methods

protected String getFileName (String publicId, String systemId)

Resolves the file name from the systemId. This implementation just returns the file starting from the last slash (/). For example, if systemId is:

"/path/name.dtd"
it returns:
name.dtd

protected InputStream getInputStream (String fileName)

Returns the InputStream for the given fileName.

Throws
FileNotFoundException
IOException