You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by il...@apache.org on 2003/04/08 03:57:36 UTC

cvs commit: xml-xalan/java/src/org/apache/xalan/templates OutputProperties.java

ilene       2003/04/07 18:57:36

  Modified:    java/src/org/apache/xalan/templates OutputProperties.java
  Log:
  Patch from Brian Minchau (minchau@ca.ibm.com) for backward compatibility
  of new serializers.  Also a fix related to a failure in the DOM2DOM sample.
  
  Revision  Changes    Path
  1.29      +19 -1     xml-xalan/java/src/org/apache/xalan/templates/OutputProperties.java
  
  Index: OutputProperties.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/templates/OutputProperties.java,v
  retrieving revision 1.28
  retrieving revision 1.29
  diff -u -r1.28 -r1.29
  --- OutputProperties.java	1 Apr 2003 20:16:27 -0000	1.28
  +++ OutputProperties.java	8 Apr 2003 01:57:36 -0000	1.29
  @@ -699,5 +699,23 @@
      *  @serial */
     private Properties m_properties = null;
   
  -
  +    /**
  +     * Creates an empty OutputProperties with the defaults specified by
  +     * a property file.  The method argument is used to construct a string of
  +     * the form output_[method].properties (for instance, output_html.properties).
  +     * The output_xml.properties file is always used as the base.
  +     * <p>At the moment, anything other than 'text', 'xml', and 'html', will
  +     * use the output_xml.properties file.</p>
  +     *
  +     * @param   method non-null reference to method name.
  +     *
  +     * @return Properties object that holds the defaults for the given method.
  +     * 
  +     * @deprecated Use org.apache.xml.serializer.OuputPropertiesFactory.
  +     * getDefaultMethodProperties directly.
  +     */
  +    static public Properties getDefaultMethodProperties(String method)
  +    {
  +        return org.apache.xml.serializer.OutputPropertiesFactory.getDefaultMethodProperties(method);
  +    }
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org