fi.karppinen.xml
Class HardwiredFileEntityResolver

java.lang.Object
  extended by fi.karppinen.xml.HardwiredFileEntityResolver
All Implemented Interfaces:
EntityResolver

public class HardwiredFileEntityResolver
extends Object
implements EntityResolver

Always returns a byte stream from a predefined file.

Version:
$Id: HardwiredFileEntityResolver.java,v 1.1 2006/10/30 19:57:09 hsivonen Exp $
Author:
hsivonen

Field Summary
private  File entity
           
 
Constructor Summary
HardwiredFileEntityResolver(File entity)
           
 
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

entity

private File entity
Constructor Detail

HardwiredFileEntityResolver

public HardwiredFileEntityResolver(File entity)
Parameters:
entity -
Method Detail

resolveEntity

public InputSource resolveEntity(String publicId,
                                 String systemId)
                          throws SAXException,
                                 IOException
Specified by:
resolveEntity in interface EntityResolver
Throws:
SAXException
IOException
See Also:
EntityResolver.resolveEntity(java.lang.String, java.lang.String)