161 * unquoted-path-with-no-sep-chars:"double-quoted path with or without sep chars":'single-quoted path with or without sep chars' 162 * </pre> 163 * <p>(Where ":" is the separater character in this example.)</p> 164 * <p>If an unquoted path contains an embedded double or single quote 165 * character, no special processig is performed on that character. No 166 * path can contain separater characters, double, and single quotes 167 * simultaneously.</p> 168 * <p>Fix bug in calculation of BASE entries: if 169 * a catalog contains multiple BASE entries, each is relative to the preceding 170 * base, not the default base URI of the catalog.</p> 171 * </dd> 172 * <dt>1.0.1</dt> 173 * <dd><p>Fixed a bug in the calculation of the list of subordinate catalogs. 174 * This bug caused an infinite loop where parsing would alternately process 175 * two catalogs indefinitely.</p> 176 * </dd> 177 * </dl> 178 * 179 * @see CatalogReader 180 * @see CatalogEntry 181 * 182 * @author Norman Walsh 183 * <a href="mailto:Norman.Walsh@Sun.COM">Norman.Walsh@Sun.COM</a> 184 * 185 * @version 1.0 186 * 187 * <p>Derived from public domain code originally published by Arbortext, 188 * Inc.</p> 189 */ 190 public class Catalog { 191 /** The BASE Catalog Entry type. */ 192 public static final int BASE = CatalogEntry.addEntryType("BASE", 1); 193 194 /** The CATALOG Catalog Entry type. */ 195 public static final int CATALOG = CatalogEntry.addEntryType("CATALOG", 1); 196 197 /** The DOCUMENT Catalog Entry type. */ 198 public static final int DOCUMENT = CatalogEntry.addEntryType("DOCUMENT", 1); 199 200 /** The OVERRIDE Catalog Entry type. */ 201 public static final int OVERRIDE = CatalogEntry.addEntryType("OVERRIDE", 1); 202 203 /** The SGMLDECL Catalog Entry type. */ 204 public static final int SGMLDECL = CatalogEntry.addEntryType("SGMLDECL", 1); 205 206 /** The DELEGATE_PUBLIC Catalog Entry type. */ 207 public static final int DELEGATE_PUBLIC = CatalogEntry.addEntryType("DELEGATE_PUBLIC", 2); 208 209 /** The DELEGATE_SYSTEM Catalog Entry type. */ | 161 * unquoted-path-with-no-sep-chars:"double-quoted path with or without sep chars":'single-quoted path with or without sep chars' 162 * </pre> 163 * <p>(Where ":" is the separater character in this example.)</p> 164 * <p>If an unquoted path contains an embedded double or single quote 165 * character, no special processig is performed on that character. No 166 * path can contain separater characters, double, and single quotes 167 * simultaneously.</p> 168 * <p>Fix bug in calculation of BASE entries: if 169 * a catalog contains multiple BASE entries, each is relative to the preceding 170 * base, not the default base URI of the catalog.</p> 171 * </dd> 172 * <dt>1.0.1</dt> 173 * <dd><p>Fixed a bug in the calculation of the list of subordinate catalogs. 174 * This bug caused an infinite loop where parsing would alternately process 175 * two catalogs indefinitely.</p> 176 * </dd> 177 * </dl> 178 * 179 * @see CatalogReader 180 * @see CatalogEntry 181 * @deprecated The JDK internal Catalog API in package 182 * {@code com.sun.org.apache.xml.internal.resolver} 183 * is encapsulated in JDK 9. The entire implementation under the package is now 184 * deprecated and subject to removal in a future release. Users of the API 185 * should migrate to the {@linkplain javax.xml.catalog new public API}. 186 * <p> 187 * The new Catalog API is supported throughout the JDK XML Processors, which allows 188 * the use of Catalog by simply setting a path to a Catalog file as a property. 189 * 190 * @author Norman Walsh 191 * <a href="mailto:Norman.Walsh@Sun.COM">Norman.Walsh@Sun.COM</a> 192 * 193 * @version 1.0 194 * 195 * <p>Derived from public domain code originally published by Arbortext, 196 * Inc.</p> 197 */ 198 @Deprecated(since="9", forRemoval=true) 199 public class Catalog { 200 /** The BASE Catalog Entry type. */ 201 public static final int BASE = CatalogEntry.addEntryType("BASE", 1); 202 203 /** The CATALOG Catalog Entry type. */ 204 public static final int CATALOG = CatalogEntry.addEntryType("CATALOG", 1); 205 206 /** The DOCUMENT Catalog Entry type. */ 207 public static final int DOCUMENT = CatalogEntry.addEntryType("DOCUMENT", 1); 208 209 /** The OVERRIDE Catalog Entry type. */ 210 public static final int OVERRIDE = CatalogEntry.addEntryType("OVERRIDE", 1); 211 212 /** The SGMLDECL Catalog Entry type. */ 213 public static final int SGMLDECL = CatalogEntry.addEntryType("SGMLDECL", 1); 214 215 /** The DELEGATE_PUBLIC Catalog Entry type. */ 216 public static final int DELEGATE_PUBLIC = CatalogEntry.addEntryType("DELEGATE_PUBLIC", 2); 217 218 /** The DELEGATE_SYSTEM Catalog Entry type. */ |