Class Indentation

java.lang.Object
org.apache.creadur.whisker.out.velocity.Indentation

public class Indentation extends Object
Manages indentation level.
  • Constructor Details

    • Indentation

      public Indentation()
  • Method Details

    • indent

      public final String indent(int indentation, Object source) throws IOException
      Creates appropriate indentation, padding with spaces.
      Parameters:
      indentation - not null
      source - not null
      Returns:
      appropriate indentation, not null
      Throws:
      IOException - when source cannot be read
    • indent

      public final String indent(int indentation, Object source, char pad) throws IOException
      Creates appropriate indentation.
      Parameters:
      indentation - not null
      source - not null
      pad - padding
      Returns:
      appropriate indentation, not null
      Throws:
      IOException - when source cannot be read