|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectca.infoway.messagebuilder.util.xml.DOMWriter
public class DOMWriter
Field Summary | |
---|---|
protected boolean |
canonical
Canonical output. |
protected boolean |
needNormalize
|
protected PrintWriter |
out
Print writer. |
Constructor Summary | |
---|---|
DOMWriter()
Default constructor |
|
DOMWriter(boolean canonical)
Default constructor. |
|
DOMWriter(boolean canonical,
boolean needNormalize)
Default constructor. |
|
DOMWriter(String encoding,
boolean canonical)
|
|
DOMWriter(String encoding,
boolean canonical,
boolean needNormalize)
|
Method Summary | |
---|---|
static String |
getWriterEncoding()
|
static boolean |
isValidJavaEncoding(String encoding)
|
protected String |
normalize(String s)
Normalizes the given string. |
void |
print(Node node)
Prints the specified node, recursively. |
static String |
renderAsString(Node node)
|
static String |
renderAsString(Node node,
boolean canonical)
|
static String |
renderAsString(Node node,
boolean canonical,
boolean needNormalize)
|
void |
setPrintWriter(PrintWriter printWriter)
|
static void |
setWriterEncoding(String encoding)
|
protected Attr[] |
sortAttributes(NamedNodeMap attrs)
Returns a sorted list of attributes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected PrintWriter out
protected boolean canonical
protected boolean needNormalize
Constructor Detail |
---|
public DOMWriter(String encoding, boolean canonical) throws UnsupportedEncodingException
UnsupportedEncodingException
public DOMWriter() throws UnsupportedEncodingException
UnsupportedEncodingException
public DOMWriter(boolean canonical, boolean needNormalize) throws UnsupportedEncodingException
UnsupportedEncodingException
public DOMWriter(boolean canonical) throws UnsupportedEncodingException
UnsupportedEncodingException
public DOMWriter(String encoding, boolean canonical, boolean needNormalize) throws UnsupportedEncodingException
UnsupportedEncodingException
Method Detail |
---|
protected Attr[] sortAttributes(NamedNodeMap attrs)
public static String renderAsString(Node node, boolean canonical, boolean needNormalize) throws IOException
IOException
public void print(Node node)
protected String normalize(String s)
public static String renderAsString(Node node, boolean canonical) throws IOException
IOException
public static String renderAsString(Node node) throws IOException
IOException
public static String getWriterEncoding()
public void setPrintWriter(PrintWriter printWriter)
public static void setWriterEncoding(String encoding)
public static boolean isValidJavaEncoding(String encoding)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |