You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

FOInputHandler.java 786B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * Copyright (C) 2001 The Apache Software Foundation. All rights reserved.
  3. * For details on use and redistribution please refer to the
  4. * LICENSE file included with these sources."
  5. */
  6. package org.apache.fop.apps;
  7. // Imported SAX classes
  8. import org.xml.sax.InputSource;
  9. import org.xml.sax.XMLReader;
  10. //fop
  11. import org.apache.fop.messaging.MessageHandler;
  12. //java
  13. import java.io.File;
  14. /**
  15. * Manages input if it is an xsl:fo file
  16. */
  17. public class FOInputHandler extends InputHandler {
  18. File fofile;
  19. public FOInputHandler (File fofile) {
  20. this.fofile = fofile;
  21. }
  22. public InputSource getInputSource () {
  23. return super.fileInputSource(fofile);
  24. }
  25. public XMLReader getParser()
  26. throws FOPException
  27. {
  28. return super.createParser();
  29. }
  30. }