XConsumer.java 794 B

1234567891011121314151617181920212223242526
  1. // Copyright (c) 2004 Per M.A. Bothner.
  2. // This is free software; for terms and warranty disclaimer see ./COPYING.
  3. package gnu.lists;
  4. /** A Consumer extended with XML-specific methods.
  5. * This should probably be in gnu.xml, but that complications TreeList. FIXME.
  6. */
  7. public interface XConsumer extends Consumer
  8. // Maybe future: extends org.xml.sax.ContentHandler
  9. {
  10. public void writeComment(char[] chars, int offset, int length);
  11. public void writeProcessingInstruction(String target, char[] content,
  12. int offset, int length);
  13. public void writeCDATA(char[] chars, int offset, int length);
  14. public void beginEntity (Object baseUri);
  15. public void endEntity ();
  16. // Maybe future?
  17. // public void setDocumentLocator(org.xml.sax.Locator locator);
  18. }