All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class hplb.xml.Utils

java.lang.Object
   |
   +----hplb.xml.Utils

public class Utils
extends Object

Constructor Index

 o Utils()

Method Index

 o compact(String)
 o encAttrVal(String)
Encode an XML attribute value.
 o encPCDATA(String)
Encode the specified String as XML PCDATA, i.e.
 o indent(PrintStream, int)
 o noCRLF(String)
 o pp(Node, PrintStream)
Pretty-print elm.
 o pp(Node, PrintStream, int)

Constructors

 o Utils
 public Utils()

Methods

 o pp
 public static void pp(Node node,
                       PrintStream out)
Pretty-print elm.

 o pp
 public static void pp(Node node,
                       PrintStream out,
                       int indent)
 o compact
 public static String compact(String s)
 o noCRLF
 public static String noCRLF(String s)
 o indent
 public static void indent(PrintStream out,
                           int indent)
 o encAttrVal
 public static String encAttrVal(String val)
Encode an XML attribute value. Changes <"> to "&quote;".

 o encPCDATA
 public static String encPCDATA(String s)
Encode the specified String as XML PCDATA, i.e. "<" is encoded as "&lt;" and "&" is encoded as "&amp;".


All Packages  Class Hierarchy  This Package  Previous  Next  Index