org.apache.fop.apps
Class InputHandler

java.lang.Object
  extended byorg.apache.fop.apps.InputHandler
Direct Known Subclasses:
FOInputHandler, TraxInputHandler, XSLTInputHandler

public abstract class InputHandler
extends java.lang.Object


Constructor Summary
InputHandler()
           
 
Method Summary
protected static org.xml.sax.XMLReader createParser()
          creates a SAX parser
static org.xml.sax.InputSource fileInputSource(java.io.File file)
          create an InputSource from a File
abstract  org.xml.sax.InputSource getInputSource()
           
abstract  org.xml.sax.XMLReader getParser()
           
abstract  void run(Driver driver)
           
static org.xml.sax.InputSource urlInputSource(java.net.URL url)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InputHandler

public InputHandler()
Method Detail

getInputSource

public abstract org.xml.sax.InputSource getInputSource()

getParser

public abstract org.xml.sax.XMLReader getParser()
                                         throws FOPException
Throws:
FOPException

run

public abstract void run(Driver driver)
                  throws FOPException
Throws:
FOPException

urlInputSource

public static org.xml.sax.InputSource urlInputSource(java.net.URL url)

fileInputSource

public static org.xml.sax.InputSource fileInputSource(java.io.File file)
create an InputSource from a File

Parameters:
file - the File
Returns:
the InputSource created

createParser

protected static org.xml.sax.XMLReader createParser()
                                             throws FOPException
creates a SAX parser

Returns:
the created SAX parser
Throws:
FOPException


Copyright © 1999-2003 Apache Software Foundation. All Rights Reserved.