< prev index next >

jaxp/src/java.xml/share/classes/com/sun/org/apache/xml/internal/serialize/HTMLdtd.java

Print this page




  29 import java.io.BufferedReader;
  30 import java.io.InputStream;
  31 import java.io.InputStreamReader;
  32 import java.util.HashMap;
  33 import java.util.Locale;
  34 import java.util.Map;
  35 
  36 
  37 /**
  38  * Utility class for accessing information specific to HTML documents.
  39  * The HTML DTD is expressed as three utility function groups. Two methods
  40  * allow for checking whether an element requires an open tag on printing
  41  * ({@link #isEmptyTag}) or on parsing ({@link #isOptionalClosing}).
  42  * <P>
  43  * Two other methods translate character references from name to value and
  44  * from value to name. A small entities resource is loaded into memory the
  45  * first time any of these methods is called for fast and efficient access.
  46  *
  47  * @author <a href="mailto:arkin@intalio.com">Assaf Arkin</a>
  48  *
  49  * @deprecated As of JDK 1.9, Xerces 2.9.0, Xerces DOM L3 Serializer implementation
  50  * is replaced by that of Xalan. Main class
  51  * {@link com.sun.org.apache.xml.internal.serialize.DOMSerializerImpl} is replaced
  52  * by {@link com.sun.org.apache.xml.internal.serializer.dom3.LSSerializerImpl}.
  53  */
  54 public final class HTMLdtd
  55 {
  56 
  57     /**
  58      * Public identifier for HTML 4.01 (Strict) document type.
  59      */
  60     public static final String HTMLPublicId = "-//W3C//DTD HTML 4.01//EN";
  61 
  62     /**
  63      * System identifier for HTML 4.01 (Strict) document type.
  64      */
  65     public static final String HTMLSystemId =
  66         "http://www.w3.org/TR/html4/strict.dtd";
  67 
  68     /**
  69      * Public identifier for XHTML 1.0 (Strict) document type.




  29 import java.io.BufferedReader;
  30 import java.io.InputStream;
  31 import java.io.InputStreamReader;
  32 import java.util.HashMap;
  33 import java.util.Locale;
  34 import java.util.Map;
  35 
  36 
  37 /**
  38  * Utility class for accessing information specific to HTML documents.
  39  * The HTML DTD is expressed as three utility function groups. Two methods
  40  * allow for checking whether an element requires an open tag on printing
  41  * ({@link #isEmptyTag}) or on parsing ({@link #isOptionalClosing}).
  42  * <P>
  43  * Two other methods translate character references from name to value and
  44  * from value to name. A small entities resource is loaded into memory the
  45  * first time any of these methods is called for fast and efficient access.
  46  *
  47  * @author <a href="mailto:arkin@intalio.com">Assaf Arkin</a>
  48  *
  49  * @deprecated As of JDK 9, Xerces 2.9.0, Xerces DOM L3 Serializer implementation
  50  * is replaced by that of Xalan. Main class
  51  * {@link com.sun.org.apache.xml.internal.serialize.DOMSerializerImpl} is replaced
  52  * by {@link com.sun.org.apache.xml.internal.serializer.dom3.LSSerializerImpl}.
  53  */
  54 public final class HTMLdtd
  55 {
  56 
  57     /**
  58      * Public identifier for HTML 4.01 (Strict) document type.
  59      */
  60     public static final String HTMLPublicId = "-//W3C//DTD HTML 4.01//EN";
  61 
  62     /**
  63      * System identifier for HTML 4.01 (Strict) document type.
  64      */
  65     public static final String HTMLSystemId =
  66         "http://www.w3.org/TR/html4/strict.dtd";
  67 
  68     /**
  69      * Public identifier for XHTML 1.0 (Strict) document type.


< prev index next >