public class LdiDomUtil extends Object
| 修飾子 | コンストラクタと説明 |
|---|---|
protected |
LdiDomUtil()
インスタンスを構築します。
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
static void |
appendAttr(Attr attr,
StringBuffer buf)
Attrの文字列表現を追加します。 |
static void |
appendAttrs(NamedNodeMap attrs,
StringBuffer buf)
NamedNodeMapの文字列表現を追加します。 |
static void |
appendCDATASection(CDATASection cdataSection,
StringBuffer buf)
CDATASectionの文字列表現を追加します。 |
static void |
appendChildren(NodeList children,
StringBuffer buf)
NodeListの文字列表現を追加します。 |
static void |
appendElement(Element element,
StringBuffer buf)
Elementの文字列表現を追加します。 |
static void |
appendEntityReference(EntityReference entityReference,
StringBuffer buf)
EntityReferenceを追加します。 |
static void |
appendNode(Node node,
StringBuffer buf)
Nodeの文字列表現を追加します。 |
static void |
appendText(Text text,
StringBuffer buf)
Textの文字列表現を追加します。 |
static String |
encodeAttrQuot(String s)
属性の値をエンコードします。
|
static String |
encodeText(String s)
テキストをエンコードします。
|
static InputStream |
getContentsAsStream(String contents)
XMLの内容を
InputStreamとして取得します。 |
static InputStream |
getContentsAsStream(String contents,
String encoding)
XMLの内容を
InputStreamとして取得します。 |
static String |
toString(Document document)
Documentを文字列に変換します。 |
static String |
toString(Element element)
Elementを文字列に変換します。 |
public static InputStream getContentsAsStream(String contents)
InputStreamとして取得します。contents - InputStreampublic static InputStream getContentsAsStream(String contents, String encoding)
InputStreamとして取得します。contents - encoding - InputStreampublic static String encodeAttrQuot(String s)
s - public static String toString(Document document)
Documentを文字列に変換します。document - public static String toString(Element element)
Elementを文字列に変換します。element - public static void appendElement(Element element, StringBuffer buf)
Elementの文字列表現を追加します。element - buf - public static void appendChildren(NodeList children, StringBuffer buf)
NodeListの文字列表現を追加します。children - buf - public static void appendAttrs(NamedNodeMap attrs, StringBuffer buf)
NamedNodeMapの文字列表現を追加します。attrs - buf - public static void appendAttr(Attr attr, StringBuffer buf)
Attrの文字列表現を追加します。attr - buf - public static void appendText(Text text, StringBuffer buf)
Textの文字列表現を追加します。text - buf - public static void appendCDATASection(CDATASection cdataSection, StringBuffer buf)
CDATASectionの文字列表現を追加します。cdataSection - buf - public static void appendEntityReference(EntityReference entityReference, StringBuffer buf)
EntityReferenceを追加します。entityReference - buf - public static void appendNode(Node node, StringBuffer buf)
Nodeの文字列表現を追加します。node - buf - Copyright © 2015 The DBFlute Project. All rights reserved.