Package ucar.nc2.util
Class Indent
- java.lang.Object
-
- ucar.nc2.util.Indent
-
public class Indent extends Object
Maintains indentation level for printing nested structures.
-
-
Constructor Summary
Constructors Constructor Description Indent(int nspaces)
Create an Indent with nspaces per level.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Indent
decr()
Decrement the indent levelIndent
incr()
Increment the indent levelint
level()
Get the indent levelvoid
setIndentLevel(int level)
Set the indent levelString
toString()
Return a String of nspaces * level blanks which is the indentation.
-
-
-
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.
-
setIndentLevel
public void setIndentLevel(int level)
Set the indent level
-
-