]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - libjava/org/xml/sax/EntityResolver.java
Imported gcc-4.4.3
[msp430-gcc.git] / libjava / org / xml / sax / EntityResolver.java
diff --git a/libjava/org/xml/sax/EntityResolver.java b/libjava/org/xml/sax/EntityResolver.java
deleted file mode 100644 (file)
index 3270471..0000000
+++ /dev/null
@@ -1,110 +0,0 @@
-// SAX entity resolver.\r
-// No warranty; no copyright -- use this as you will.\r
-// $Id: EntityResolver.java,v 1.1 2000/10/02 02:43:17 sboag Exp $\r
-\r
-package org.xml.sax;\r
-\r
-import java.io.IOException;\r
-\r
-\r
-/**\r
- * Basic interface for resolving entities.\r
- *\r
- * <blockquote>\r
- * <em>This module, both source code and documentation, is in the\r
- * Public Domain, and comes with <strong>NO WARRANTY</strong>.</em>\r
- * </blockquote>\r
- *\r
- * <p>If a SAX application needs to implement customized handling\r
- * for external entities, it must implement this interface and\r
- * register an instance with the SAX driver using the\r
- * {@link org.xml.sax.XMLReader#setEntityResolver setEntityResolver}\r
- * method.</p>\r
- *\r
- * <p>The XML reader will then allow the application to intercept any\r
- * external entities (including the external DTD subset and external\r
- * parameter entities, if any) before including them.</p>\r
- *\r
- * <p>Many SAX applications will not need to implement this interface,\r
- * but it will be especially useful for applications that build\r
- * XML documents from databases or other specialised input sources,\r
- * or for applications that use URI types other than URLs.</p>\r
- *\r
- * <p>The following resolver would provide the application\r
- * with a special character stream for the entity with the system\r
- * identifier "http://www.myhost.com/today":</p>\r
- *\r
- * <pre>\r
- * import org.xml.sax.EntityResolver;\r
- * import org.xml.sax.InputSource;\r
- *\r
- * public class MyResolver implements EntityResolver {\r
- *   public InputSource resolveEntity (String publicId, String systemId)\r
- *   {\r
- *     if (systemId.equals("http://www.myhost.com/today")) {\r
- *              // return a special input source\r
- *       MyReader reader = new MyReader();\r
- *       return new InputSource(reader);\r
- *     } else {\r
- *              // use the default behaviour\r
- *       return null;\r
- *     }\r
- *   }\r
- * }\r
- * </pre>\r
- *\r
- * <p>The application can also use this interface to redirect system\r
- * identifiers to local URIs or to look up replacements in a catalog\r
- * (possibly by using the public identifier).</p>\r
- *\r
- * @since SAX 1.0\r
- * @author David Megginson, \r
- *         <a href="mailto:sax@megginson.com">sax@megginson.com</a>\r
- * @version 2.0\r
- * @see org.xml.sax.Parser#setEntityResolver\r
- * @see org.xml.sax.InputSource\r
- */\r
-public interface EntityResolver {\r
-    \r
-    \r
-    /**\r
-     * Allow the application to resolve external entities.\r
-     *\r
-     * <p>The Parser will call this method before opening any external\r
-     * entity except the top-level document entity (including the\r
-     * external DTD subset, external entities referenced within the\r
-     * DTD, and external entities referenced within the document\r
-     * element): the application may request that the parser resolve\r
-     * the entity itself, that it use an alternative URI, or that it\r
-     * use an entirely different input source.</p>\r
-     *\r
-     * <p>Application writers can use this method to redirect external\r
-     * system identifiers to secure and/or local URIs, to look up\r
-     * public identifiers in a catalogue, or to read an entity from a\r
-     * database or other input source (including, for example, a dialog\r
-     * box).</p>\r
-     *\r
-     * <p>If the system identifier is a URL, the SAX parser must\r
-     * resolve it fully before reporting it to the application.</p>\r
-     *\r
-     * @param publicId The public identifier of the external entity\r
-     *        being referenced, or null if none was supplied.\r
-     * @param systemId The system identifier of the external entity\r
-     *        being referenced.\r
-     * @return An InputSource object describing the new input source,\r
-     *         or null to request that the parser open a regular\r
-     *         URI connection to the system identifier.\r
-     * @exception org.xml.sax.SAXException Any SAX exception, possibly\r
-     *            wrapping another exception.\r
-     * @exception java.io.IOException A Java-specific IO exception,\r
-     *            possibly the result of creating a new InputStream\r
-     *            or Reader for the InputSource.\r
-     * @see org.xml.sax.InputSource\r
-     */\r
-    public abstract InputSource resolveEntity (String publicId,\r
-                                              String systemId)\r
-       throws SAXException, IOException;\r
-    \r
-}\r
-\r
-// end of EntityResolver.java\r