You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by ar...@locus.apache.org on 2000/05/26 22:21:14 UTC

cvs commit: xml-xerces/java/src/org/apache/xml/serialize OutputFormat.java

arkin       00/05/26 13:21:13

  Modified:    java/src/org/apache/xml/serialize OutputFormat.java
  Log:
  Removed whichDocType methods
  
  Revision  Changes    Path
  1.6       +1 -49     xml-xerces/java/src/org/apache/xml/serialize/OutputFormat.java
  
  Index: OutputFormat.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/xml/serialize/OutputFormat.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- OutputFormat.java	2000/03/28 23:09:08	1.5
  +++ OutputFormat.java	2000/05/26 20:21:12	1.6
  @@ -83,7 +83,7 @@
    * </ul>
    * 
    *
  - * @version $Revision: 1.5 $ $Date: 2000/03/28 23:09:08 $
  + * @version $Revision: 1.6 $ $Date: 2000/05/26 20:21:12 $
    * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
    *         <a href="mailto:visco@exoffice.com">Keith Visco</a>
    * @see Serializer
  @@ -802,54 +802,6 @@
           return Method.XML;
       }
       
  -
  -    /**
  -     * Returns the document type public identifier
  -     * specified for this document, or null.
  -     */
  -    public static String whichDoctypePublic( Document doc )
  -    {
  -        DocumentType doctype;
  -        
  -        /* XXX  Delayed until DOM Level 2 is introduced into the code base
  -           doctype = doc.getDoctype();
  -           if ( doctype != null ) {
  -           // Note on catch: DOM Level 1 does not specify this method
  -           // and the code will throw a NoSuchMethodError
  -           try {
  -           return doctype.getPublicID();
  -           } catch ( Error except ) {  }
  -           }
  -        */
  -        if ( doc instanceof HTMLDocument )
  -            return DTD.XHTMLPublicId;
  -        return null;
  -    }
  -
  -
  -    /**
  -     * Returns the document type system identifier
  -     * specified for this document, or null.
  -     */
  -    public static String whichDoctypeSystem( Document doc )
  -    {
  -        DocumentType doctype;
  -        
  -        /* XXX  Delayed until DOM Level 2 is introduced into the code base
  -           doctype = doc.getDoctype();
  -           if ( doctype != null ) {
  -           // Note on catch: DOM Level 1 does not specify this method
  -           // and the code will throw a NoSuchMethodError
  -           try {
  -           return doctype.getSystemID();
  -           } catch ( Error except ) { }
  -           }
  -        */
  -        if ( doc instanceof HTMLDocument )
  -            return DTD.XHTMLSystemId;
  -        return null;
  -    }
  -
   
       /**
        * Returns the suitable media format for a document