Package ucar.nc2.util

Class Indent


  • public class Indent
    extends Object
    Maintains indentation level for printing nested structures.
    • Constructor Detail

      • Indent

        public Indent​(int nspaces)
        Create an Indent with nspaces per level.
    • Method Detail

      • incr

        public Indent incr()
        Increment the indent level
      • decr

        public Indent decr()
        Decrement the indent level
      • level

        public int level()
        Get the indent level
      • toString

        public String toString()
        Return a String of nspaces * level blanks which is the indentation.
        Overrides:
        toString in class Object
      • setIndentLevel

        public void setIndentLevel​(int level)
        Set the indent level