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.

DocumentInputSource.java 810B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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.tools;
  7. import java.util.*;
  8. import org.w3c.dom.*;
  9. import org.xml.sax.*;
  10. /**
  11. * This is an InputSource to be used with DocumentReader.
  12. *
  13. * @author Kelly A Campbell
  14. *
  15. */
  16. public class DocumentInputSource extends InputSource
  17. {
  18. private Document _document;
  19. public DocumentInputSource()
  20. {
  21. super();
  22. }
  23. public DocumentInputSource(Document document)
  24. {
  25. this();
  26. _document = document;
  27. }
  28. public Document getDocument()
  29. {
  30. return _document;
  31. }
  32. public void setDocument(Document document)
  33. {
  34. _document = document;
  35. }
  36. }