|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.bbk.dcs.automed.xml.utilities.PrintUtility
public class PrintUtility
Field Summary | |
---|---|
private static int |
bannerWidth
|
Constructor Summary | |
---|---|
PrintUtility()
|
Method Summary | |
---|---|
static void |
banner()
Prints a line of 90 stars. |
static void |
banner(int num,
java.io.Writer w)
Prints a line of num stars. |
static void |
banner(java.io.Writer w)
Prints a line of 90 stars. |
static java.lang.String |
documentToString(org.w3c.dom.Document d)
Returns the String representation of document d. |
static void |
prettyPrint(org.w3c.dom.Node n)
Outputs the subtree with root n to System.out with identation, without any respect to the file's original identation |
static void |
prettyPrint(org.w3c.dom.Node n,
java.io.OutputStream ps)
|
static void |
prettyPrint(org.w3c.dom.Node n,
java.lang.String title)
Outputs the subtree with root n to System.out with identation, without any respect to the file's original identation. |
static void |
prettyPrint(org.w3c.dom.Node n,
java.lang.String title,
java.io.OutputStream ps)
|
static void |
printDocument(org.w3c.dom.Document doc)
Outputs Document doc in System.out exactly as it is in the DOM. |
static void |
printDocument(org.w3c.dom.Document doc,
java.io.File f)
Outputs Document doc in File f exactly as it is in the DOM. |
static void |
printDocument(org.w3c.dom.Document doc,
java.io.OutputStream ps)
Outputs Document doc in ps exactly as it is in the DOM. |
static void |
title(java.lang.String title)
Prints a line of stars, then the input title centered inside a line of stars, then another line of stars. |
static void |
title(java.lang.String title,
java.io.Writer w)
Prints a line of stars, then the input title centered inside a line of stars, then another line of stars. |
private static void |
treatNodes(org.w3c.dom.Node n,
java.io.Writer osw)
Help method for method NodeUtility#prettyPrint(Node n). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static int bannerWidth
Constructor Detail |
---|
public PrintUtility()
Method Detail |
---|
public static void printDocument(org.w3c.dom.Document doc, java.io.File f)
public static java.lang.String documentToString(org.w3c.dom.Document d)
public static void printDocument(org.w3c.dom.Document doc)
public static void printDocument(org.w3c.dom.Document doc, java.io.OutputStream ps)
public static void banner(int num, java.io.Writer w)
public static void title(java.lang.String title)
public static void title(java.lang.String title, java.io.Writer w)
public static void banner()
public static void banner(java.io.Writer w)
public static void prettyPrint(org.w3c.dom.Node n, java.io.OutputStream ps)
public static void prettyPrint(org.w3c.dom.Node n, java.lang.String title, java.io.OutputStream ps)
public static void prettyPrint(org.w3c.dom.Node n, java.lang.String title)
n
- the root of the subtree - will accept a Document variable
XMLException
public static void prettyPrint(org.w3c.dom.Node n)
n
- the root of the subtree - will accept a Document variable
XMLException
org.w3c.dom.DOMException
private static void treatNodes(org.w3c.dom.Node n, java.io.Writer osw) throws java.io.IOException, XMLException
XMLException
org.w3c.dom.DOMException
java.io.IOException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |