1 /*
2 * Copyright (c) 2009, 2017, Oracle and/or its affiliates. All rights reserved.
3 * @LastModified: Oct 2017
4 */
5 /*
6 * Licensed to the Apache Software Foundation (ASF) under one or more
7 * contributor license agreements. See the NOTICE file distributed with
8 * this work for additional information regarding copyright ownership.
9 * The ASF licenses this file to You under the Apache License, Version 2.0
10 * (the "License"); you may not use this file except in compliance with
11 * the License. You may obtain a copy of the License at
12 *
13 * http://www.apache.org/licenses/LICENSE-2.0
14 *
15 * Unless required by applicable law or agreed to in writing, software
16 * distributed under the License is distributed on an "AS IS" BASIS,
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
20 */
21
22 package com.sun.org.apache.xerces.internal.impl ;
23
73 * xni.
74 * <p>
75 * This component requires the following features and properties from the
76 * component manager that uses it:
77 * <ul>
78 * <li>http://xml.org/sax/features/validation</li>
79 * <li>http://xml.org/sax/features/external-general-entities</li>
80 * <li>http://xml.org/sax/features/external-parameter-entities</li>
81 * <li>http://apache.org/xml/features/allow-java-encodings</li>
82 * <li>http://apache.org/xml/properties/internal/symbol-table</li>
83 * <li>http://apache.org/xml/properties/internal/error-reporter</li>
84 * <li>http://apache.org/xml/properties/internal/entity-resolver</li>
85 * </ul>
86 *
87 *
88 * @author Andy Clark, IBM
89 * @author Arnaud Le Hors, IBM
90 * @author K.Venugopal SUN Microsystems
91 * @author Neeraj Bajaj SUN Microsystems
92 * @author Sunitha Reddy SUN Microsystems
93 */
94 public class XMLEntityManager implements XMLComponent, XMLEntityResolver {
95
96 //
97 // Constants
98 //
99
100 /** Default buffer size (2048). */
101 public static final int DEFAULT_BUFFER_SIZE = 8192;
102
103 /** Default buffer size before we've finished with the XMLDecl: */
104 public static final int DEFAULT_XMLDECL_BUFFER_SIZE = 64;
105
106 /** Default internal entity buffer size (1024). */
107 public static final int DEFAULT_INTERNAL_BUFFER_SIZE = 1024;
108
109 // feature identifiers
110
111 /** Feature identifier: validation. */
112 protected static final String VALIDATION =
|
1 /*
2 * Copyright (c) 2009, 2017, Oracle and/or its affiliates. All rights reserved.
3 */
4 /*
5 * Licensed to the Apache Software Foundation (ASF) under one or more
6 * contributor license agreements. See the NOTICE file distributed with
7 * this work for additional information regarding copyright ownership.
8 * The ASF licenses this file to You under the Apache License, Version 2.0
9 * (the "License"); you may not use this file except in compliance with
10 * the License. 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.impl ;
22
72 * xni.
73 * <p>
74 * This component requires the following features and properties from the
75 * component manager that uses it:
76 * <ul>
77 * <li>http://xml.org/sax/features/validation</li>
78 * <li>http://xml.org/sax/features/external-general-entities</li>
79 * <li>http://xml.org/sax/features/external-parameter-entities</li>
80 * <li>http://apache.org/xml/features/allow-java-encodings</li>
81 * <li>http://apache.org/xml/properties/internal/symbol-table</li>
82 * <li>http://apache.org/xml/properties/internal/error-reporter</li>
83 * <li>http://apache.org/xml/properties/internal/entity-resolver</li>
84 * </ul>
85 *
86 *
87 * @author Andy Clark, IBM
88 * @author Arnaud Le Hors, IBM
89 * @author K.Venugopal SUN Microsystems
90 * @author Neeraj Bajaj SUN Microsystems
91 * @author Sunitha Reddy SUN Microsystems
92 * @LastModified: Oct 2017
93 */
94 public class XMLEntityManager implements XMLComponent, XMLEntityResolver {
95
96 //
97 // Constants
98 //
99
100 /** Default buffer size (2048). */
101 public static final int DEFAULT_BUFFER_SIZE = 8192;
102
103 /** Default buffer size before we've finished with the XMLDecl: */
104 public static final int DEFAULT_XMLDECL_BUFFER_SIZE = 64;
105
106 /** Default internal entity buffer size (1024). */
107 public static final int DEFAULT_INTERNAL_BUFFER_SIZE = 1024;
108
109 // feature identifiers
110
111 /** Feature identifier: validation. */
112 protected static final String VALIDATION =
|