01: /*
02: * (C) Copyright 2002-2003, Andy Clark. All rights reserved.
03: *
04: * This file is distributed under an Apache style license. Please
05: * refer to the LICENSE file for specific details.
06: */
07:
08: package org.cyberneko.pull.event;
09:
10: import org.cyberneko.pull.XMLEvent;
11:
12: import org.apache.xerces.xni.XMLLocator;
13:
14: /**
15: * A document event.
16: *
17: * @author Andy Clark
18: *
19: * @version $Id$
20: */
21: public class DocumentEvent extends BoundedEvent {
22:
23: //
24: // Data
25: //
26:
27: /**
28: * The document locator. Unlike other data values, the application is
29: * allowed to keep a reference to this object in order to query document
30: * locations of events.
31: */
32: public XMLLocator locator;
33:
34: /** The automatically detected encoding of the document. */
35: public String encoding;
36:
37: //
38: // Constructors
39: //
40:
41: /** Default constructor. */
42: public DocumentEvent() {
43: super (XMLEvent.DOCUMENT);
44: } // <init>()
45:
46: } // class DocumentEvent
|