01: // Copyright (c) 2004 Per M.A. Bothner.
02: // This is free software; for terms and warranty disclaimer see ./COPYING.
03:
04: package gnu.lists;
05:
06: /** A Consumer extended with XML-specific methods.
07: * This should probably be in gnu.xml, but that complications TreeList. FIXME.
08: */
09:
10: public interface XConsumer extends Consumer
11: // Maybe future: extends org.xml.sax.ContentHandler
12: {
13: public void writeComment(char[] chars, int offset, int length);
14:
15: public void writeProcessingInstruction(String target,
16: char[] content, int offset, int length);
17:
18: public void writeCDATA(char[] chars, int offset, int length);
19:
20: public void beginEntity(Object baseUri);
21:
22: public void endEntity();
23:
24: // Maybe future?
25: // public void setDocumentLocator(org.xml.sax.Locator locator);
26: }
|