|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectcom.hamaf.hikyaku.util.XmlUtil
public class XmlUtil
タイトル: XmlUtil is opretion DOM Utility.
説明: XMLの操作を行うユーティリティクラス
著作権: Copyright (c) 2003
コンストラクタの概要 | |
---|---|
XmlUtil()
|
メソッドの概要 | |
---|---|
static org.w3c.dom.Document |
createDocument()
Describe createDocument method : create new Document Object. |
static org.w3c.dom.Document |
createDocument(java.io.InputStream input)
Describe createDocument method : create new Document from Xml File. |
static org.w3c.dom.Document |
createDocument(java.lang.String fileName)
Describe createDocument method : create new Document from Xml File. |
static org.w3c.dom.Node |
getNextElement(org.w3c.dom.Node nd)
Describe getNextElement method : return First Next Element. |
static org.w3c.dom.Node |
getPreviousElement(org.w3c.dom.Node nd)
Describe getPreviousElement method : return First Previous Element. |
static void |
writeXml(org.w3c.dom.Document xml,
java.io.OutputStream out,
java.lang.String encode)
Describe writeXml method : Document write to OutputStream. |
static void |
writeXml(org.w3c.dom.Document xml,
java.lang.String fileName,
java.lang.String encode)
Describe writeXml method : Document write to File. |
static void |
writeXml(org.w3c.dom.Document xml,
java.io.Writer out,
java.lang.String encode)
Describe writeXml method : Document write to Writer. |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
---|
public XmlUtil()
メソッドの詳細 |
---|
public static final org.w3c.dom.Document createDocument() throws java.lang.Exception
createDocument
method : create new Document Object.
新しい空のドキュメントオブジェクトを生成して戻します。
Document
: 生成したDocument
java.lang.Exception
public static final org.w3c.dom.Document createDocument(java.lang.String fileName) throws java.lang.Exception
createDocument
method : create new Document from Xml File.
fileName
- a String
: Document を構築する XML File のURL
Document
: 生成したDocument
java.lang.Exception
public static final org.w3c.dom.Document createDocument(java.io.InputStream input) throws java.lang.Exception
createDocument
method : create new Document from Xml File.
input
- an InputStream
: Document を構築する入力ストリーム
Document
: 生成したDocument
java.lang.Exception
public static final void writeXml(org.w3c.dom.Document xml, java.io.Writer out, java.lang.String encode) throws java.lang.Exception
writeXml
method : Document write to Writer.
Writer
を指定すること。
xml
- a Document
: 出力するDocument Objectout
- an Writer
: 出力先のWriterencode
- a StreamResult
: 出力する文字コード(規定値 UTF-8)
java.lang.Exception
public static final void writeXml(org.w3c.dom.Document xml, java.io.OutputStream out, java.lang.String encode) throws java.lang.Exception
writeXml
method : Document write to OutputStream.
xml
- a Document
: 出力するDocument Objectout
- an OntputStream
: 出力先のストリームencode
- a StreamResult
: 出力する文字コード(規定値 UTF-8)
java.lang.Exception
public static final void writeXml(org.w3c.dom.Document xml, java.lang.String fileName, java.lang.String encode) throws java.lang.Exception
writeXml
method : Document write to File.
xml
- a Document
: 出力するDocument ObjectfileName
- a String
: 出力先のファイルのフルパス名encode
- a StreamResult
: 出力する文字コード(規定値 UTF-8)
java.lang.Exception
public static final org.w3c.dom.Node getPreviousElement(org.w3c.dom.Node nd)
getPreviousElement
method : return First Previous Element.
渡されたノードのすぐ上のエレメントノードを戻します。該当するノードが存在しない場合は null が返されます。
nd
- a Node
: 元になるノード
Node
: すぐ上のエレメントノードpublic static final org.w3c.dom.Node getNextElement(org.w3c.dom.Node nd)
getNextElement
method : return First Next Element.
渡されたノードのすぐ下のエレメントノードを戻します。該当するノードが存在しない場合は null が返されます。
nd
- a Node
: 元になるノード
Node
: すぐ下のエレメントノード
|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |