63 * xni.
64 * <p>
65 * This component requires the following features and properties from the
66 * component manager that uses it:
67 * <ul>
68 * <li>http://xml.org/sax/features/validation</li>
69 * <li>http://xml.org/sax/features/external-general-entities</li>
70 * <li>http://xml.org/sax/features/external-parameter-entities</li>
71 * <li>http://apache.org/xml/features/allow-java-encodings</li>
72 * <li>http://apache.org/xml/properties/internal/symbol-table</li>
73 * <li>http://apache.org/xml/properties/internal/error-reporter</li>
74 * <li>http://apache.org/xml/properties/internal/entity-resolver</li>
75 * </ul>
76 *
77 *
78 * @author Andy Clark, IBM
79 * @author Arnaud Le Hors, IBM
80 * @author K.Venugopal SUN Microsystems
81 * @author Neeraj Bajaj SUN Microsystems
82 * @author Sunitha Reddy SUN Microsystems
83 * @version $Id: XMLEntityManager.java,v 1.17 2010-11-01 04:39:41 joehw Exp $
84 */
85 public class XMLEntityManager implements XMLComponent, XMLEntityResolver {
86
87 //
88 // Constants
89 //
90
91 /** Default buffer size (2048). */
92 public static final int DEFAULT_BUFFER_SIZE = 8192;
93
94 /** Default buffer size before we've finished with the XMLDecl: */
95 public static final int DEFAULT_XMLDECL_BUFFER_SIZE = 64;
96
97 /** Default internal entity buffer size (1024). */
98 public static final int DEFAULT_INTERNAL_BUFFER_SIZE = 1024;
99
100 // feature identifiers
101
102 /** Feature identifier: validation. */
103 protected static final String VALIDATION =
|
63 * xni.
64 * <p>
65 * This component requires the following features and properties from the
66 * component manager that uses it:
67 * <ul>
68 * <li>http://xml.org/sax/features/validation</li>
69 * <li>http://xml.org/sax/features/external-general-entities</li>
70 * <li>http://xml.org/sax/features/external-parameter-entities</li>
71 * <li>http://apache.org/xml/features/allow-java-encodings</li>
72 * <li>http://apache.org/xml/properties/internal/symbol-table</li>
73 * <li>http://apache.org/xml/properties/internal/error-reporter</li>
74 * <li>http://apache.org/xml/properties/internal/entity-resolver</li>
75 * </ul>
76 *
77 *
78 * @author Andy Clark, IBM
79 * @author Arnaud Le Hors, IBM
80 * @author K.Venugopal SUN Microsystems
81 * @author Neeraj Bajaj SUN Microsystems
82 * @author Sunitha Reddy SUN Microsystems
83 */
84 public class XMLEntityManager implements XMLComponent, XMLEntityResolver {
85
86 //
87 // Constants
88 //
89
90 /** Default buffer size (2048). */
91 public static final int DEFAULT_BUFFER_SIZE = 8192;
92
93 /** Default buffer size before we've finished with the XMLDecl: */
94 public static final int DEFAULT_XMLDECL_BUFFER_SIZE = 64;
95
96 /** Default internal entity buffer size (1024). */
97 public static final int DEFAULT_INTERNAL_BUFFER_SIZE = 1024;
98
99 // feature identifiers
100
101 /** Feature identifier: validation. */
102 protected static final String VALIDATION =
|