|
SunTM's XACML Implementation for JavaTM | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.xacml.Indenter
Provides flexible indenting for XML encoding. This class generates strings of spaces to be prepended to lines of XML. The strings are formed according to a specified indent width and the given depth.
Field Summary | |
static int |
DEFAULT_WIDTH
The default indentation width |
Constructor Summary | |
Indenter()
Constructs an Indenter with the default indent
width. |
|
Indenter(int userWidth)
Constructs an Indenter with a user-supplied indent
width. |
Method Summary | |
void |
in()
Move in one width. |
String |
makeString()
Create a String of spaces for indentation based on the
current depth. |
void |
out()
Move out one width. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int DEFAULT_WIDTH
Constructor Detail |
public Indenter()
Indenter
with the default indent
width.
public Indenter(int userWidth)
Indenter
with a user-supplied indent
width.
userWidth
- the number of spaces to use for each indentation levelMethod Detail |
public void in()
public void out()
public String makeString()
String
of spaces for indentation based on the
current depth.
|
Sun's XACML Implementation Version 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Sun, Sun Microsystems, the Sun Logo, and Java are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.