Package org.onlab.util
Class XmlString
- java.lang.Object
-
- org.onlab.util.XmlString
-
- All Implemented Interfaces:
java.lang.CharSequence
public class XmlString extends java.lang.Object implements java.lang.CharSequence
PrettyPrinted XML String.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description char
charAt(int index)
int
length()
static java.lang.CharSequence
prettifyXml(java.lang.CharSequence xml)
Prettifies given XML String.java.lang.CharSequence
subSequence(int start, int end)
java.lang.String
toString()
-
-
-
Method Detail
-
prettifyXml
public static java.lang.CharSequence prettifyXml(java.lang.CharSequence xml)
Prettifies given XML String.- Parameters:
xml
- input XML- Returns:
- prettified input or input itself is input is not well-formed
-
length
public int length()
- Specified by:
length
in interfacejava.lang.CharSequence
-
charAt
public char charAt(int index)
- Specified by:
charAt
in interfacejava.lang.CharSequence
-
subSequence
public java.lang.CharSequence subSequence(int start, int end)
- Specified by:
subSequence
in interfacejava.lang.CharSequence
-
toString
public java.lang.String toString()
- Specified by:
toString
in interfacejava.lang.CharSequence
- Overrides:
toString
in classjava.lang.Object
-
-