sboag       00/10/02 16:38:43

  Modified:    java/src/serialize OutputFormat.java
  Log:
  Added a (non-xslt) property for the indent amount.
  
  Revision  Changes    Path
  1.4       +27 -1     xml-xalan/java/src/serialize/OutputFormat.java
  
  Index: OutputFormat.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/serialize/OutputFormat.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- OutputFormat.java 2000/10/02 02:43:21     1.3
  +++ OutputFormat.java 2000/10/02 23:38:42     1.4
  @@ -121,7 +121,11 @@
        * True if indentation is requested, false for no indentation.
        */
       private boolean _indent = false;
  -
  +    
  +    /**
  +     * The amount to indent a line, when indent is set to true.
  +     */
  +    private int _indentAmount = 4;
   
       /**
        * The encoding to use, if an input stream is used, UTF-8 for
  @@ -266,6 +270,28 @@
       {
           _indent = indent;
       }
  +    
  +    /**
  +     * Returns the amount to indent if indentation was specified.
  +     *
  +     * @return True if indentation was specified
  +     */
  +    public int getIndentAmount()
  +    {
  +        return _indentAmount;
  +    }
  +
  +
  +    /**
  +     * Sets how much to indent, if indentation was specified.
  +     *
  +     * @param amount Number of spaces to indent.
  +     */
  +    public void setIndentAmount( int amount )
  +    {
  +        _indentAmount = amount;
  +    }
  +
   
   
       /**
  
  
  

Reply via email to