KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > xerces > xni > parser > XMLDocumentSource


1 /*
2  * Copyright 2001, 2002,2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16
17 package org.apache.xerces.xni.parser;
18
19 import org.apache.xerces.xni.XMLDocumentHandler;
20
21 /**
22  * Defines a document source. In other words, any object that implements
23  * this interface is able to emit document "events" to the registered
24  * document handler. These events could be produced by parsing an XML
25  * document, could be generated from some other source, or could be
26  * created programmatically. This interface does not say <em>how</em>
27  * the events are created, only that the implementor is able to emit
28  * them.
29  *
30  * @author Andy Clark, IBM
31  *
32  * @version $Id: XMLDocumentSource.java,v 1.5 2004/02/24 23:15:56 mrglavas Exp $
33  */

34 public interface XMLDocumentSource {
35
36     //
37
// XMLDocumentSource methods
38
//
39

40     /** Sets the document handler. */
41     public void setDocumentHandler(XMLDocumentHandler handler);
42
43     /** Returns the document handler */
44     public XMLDocumentHandler getDocumentHandler();
45
46 } // interface XMLDocumentSource
47
Popular Tags