View Javadoc
1   /*
2    * reserved comment block
3    * DO NOT REMOVE OR ALTER!
4    */
5   /*
6    * Copyright 2001, 2002,2004 The Apache Software Foundation.
7    *
8    * Licensed under the Apache License, Version 2.0 (the "License");
9    * you may not use this file except in compliance with the License.
10   * You may obtain a copy of the License at
11   *
12   *      http://www.apache.org/licenses/LICENSE-2.0
13   *
14   * Unless required by applicable law or agreed to in writing, software
15   * distributed under the License is distributed on an "AS IS" BASIS,
16   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17   * See the License for the specific language governing permissions and
18   * limitations under the License.
19   */
20  
21  package com.sun.org.apache.xerces.internal.xni.parser;
22  
23  import com.sun.org.apache.xerces.internal.xni.XMLDocumentHandler;
24  
25  /**
26   * Defines a document source. In other words, any object that implements
27   * this interface is able to emit document "events" to the registered
28   * document handler. These events could be produced by parsing an XML
29   * document, could be generated from some other source, or could be
30   * created programmatically. This interface does not say <em>how</em>
31   * the events are created, only that the implementor is able to emit
32   * them.
33   *
34   * @author Andy Clark, IBM
35   *
36   */
37  public interface XMLDocumentSource {
38  
39      //
40      // XMLDocumentSource methods
41      //
42  
43      /** Sets the document handler. */
44      public void setDocumentHandler(XMLDocumentHandler handler);
45  
46      /** Returns the document handler */
47      public XMLDocumentHandler getDocumentHandler();
48  
49  } // interface XMLDocumentSource