KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > gnu > lists > XConsumer


1 // Copyright (c) 2004 Per M.A. Bothner.
2
// This is free software; for terms and warranty disclaimer see ./COPYING.
3

4 package gnu.lists;
5
6 /** A Consumer extended with XML-specific methods.
7  * This should probably be in gnu.xml, but that complications TreeList. FIXME.
8  */

9
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 JavaDoc target, char[] content,
16                      int offset, int length);
17
18   public void writeCDATA(char[] chars, int offset, int length);
19
20   public void beginEntity (Object JavaDoc baseUri);
21   public void endEntity ();
22
23   // Maybe future?
24
// public void setDocumentLocator(org.xml.sax.Locator locator);
25
}
26
Popular Tags