01: /**
02: *
03: * © Copyright International Business Machines Corporation 2005, 2006.
04: * All rights reserved.
05: *
06: * The 'ContentHandler' interface defines the functionality of a content handler.
07: *
08: * File : ContentHandler.java
09: * Created : 2005/08/16
10: *
11: * @author Rene Pawlitzek (rpa@zurich.ibm.com)
12: * @version 2.00, 2005/08/16
13: * @since JDK 1.3
14: *
15: * History : 2005/08/16, rpa, new file
16: * 2006/03/14, rpa, code review
17: *
18: */package com.ibm.hamlet;
19:
20: import java.io.*;
21: import org.xml.sax.*;
22:
23: public interface ContentHandler {
24:
25: public int getElementRepeatCount(String id, String name,
26: Attributes atts) throws Exception;
27:
28: public String getElementReplacement(String id, String name,
29: Attributes atts) throws Exception;
30:
31: public Attributes getElementAttributes(String id, String name,
32: Attributes atts) throws Exception;
33:
34: public InputStream getElementIncludeSource(String id, String name,
35: Attributes atts) throws Exception;
36:
37: } // ContentHandler
38:
39: /* ----- End of File ----- */
|