|
|||||||||
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
Constructor Summary | |
---|---|
PrintUtility()
|
Method Summary | |
---|---|
static void |
banner()
Prints a line of 90 stars. |
static void |
banner(int num)
Prints a line of num 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.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 |
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.PrintStream ps)
Outputs Document doc in ps exactly as it is in the DOM. |
static void |
printSource(java.lang.String label,
org.w3c.dom.Document doc,
org.w3c.dom.Document schemaUIDDoc,
Schema schema)
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.PrintStream ps)
public static void banner(int num)
public static void title(java.lang.String title)
public static void banner()
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
public static void printSource(java.lang.String label, org.w3c.dom.Document doc, org.w3c.dom.Document schemaUIDDoc, Schema schema)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |