KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > cocoon > slop > interfaces > SlopParser


1 /*
2  * Copyright 1999-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.cocoon.slop.interfaces;
18
19 import org.xml.sax.ContentHandler JavaDoc;
20 import org.xml.sax.SAXException JavaDoc;
21 import org.apache.cocoon.ProcessingException;
22
23 /** Interface to SLOP parsers
24  *
25  * @author <a HREF="mailto:bdelacretaz@apache.org">Bertrand Delacretaz</a>
26  * @version CVS $Id: SlopParser.java 30932 2004-07-29 17:35:38Z vgritsenko $
27  */

28  
29 public interface SlopParser {
30
31    /** must be called before any call to processLine() */
32     public void startDocument(ContentHandler JavaDoc destination)
33         throws SAXException JavaDoc, ProcessingException;
34
35     /** must be called once all calls to processLine() are done */
36     public void endDocument()
37         throws SAXException JavaDoc, ProcessingException;
38
39     /** call this to process input lines, does the actual parsing */
40     public void processLine(String JavaDoc line)
41         throws SAXException JavaDoc, ProcessingException;
42 }
43
Popular Tags