1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24 package net.sf.stax;
25
26 import org.xml.sax.SAXException;
27
28 /***
29 * Interface which exposes delegation services offered by a StAX
30 * event source.
31 *
32 * @author Thomas Down
33 * @author Matthew Pocock
34 * @author Michael Heuer
35 * @version $Revision: 1.2 $ $Date: 2006/01/02 20:37:34 $
36 */
37 public interface StAXDelegationContext
38 extends StAXContext
39 {
40 /***
41 * Delegate to the specified StAXContentHandler.
42 *
43 * @param handler content handler to delegate to
44 * @throws SAXException any SAX exception, possibly wrapping another exception
45 */
46 void delegate(StAXContentHandler handler)
47 throws SAXException;
48
49 /***
50 * Push the specified subcontext on the stack of contexts.
51 *
52 * @param subContext subcontext to push
53 * @throws SAXException any SAX exception, possibly wrapping another exception
54 */
55 void pushContext(String subContext)
56 throws SAXException;
57 }
58