|
|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectorg.opengion.fukurou.xml.DomParser
public final class DomParser
XMLファイルを読み取って、Document オブジェクトを取得する、ユーティリティークラスです。 javax.xml.parsers および、org.w3c.dom の簡易処理を行います。 read で、Document を読み込み、write で、ファイルに書き出します。 なお、書き出しに関しては、UTF-8 固定で、かつ、Transformer で行いますので、 属性の並び順は、保障されません。(つまり、簡易的な書き出し機能です。)
5.1.7.0 (2010/06/01) 新規作成 |
メソッドの概要 | |
---|---|
static org.w3c.dom.Document |
read(java.io.File aFile)
XMLファイルを読み込み、org.w3c.dom.Documentを返す |
static void |
write(java.io.File aFile,
org.w3c.dom.Document aDocument)
Documentを指定ファイルに保存する |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
メソッドの詳細 |
---|
public static org.w3c.dom.Document read(java.io.File aFile)
aFile
- File
public static void write(java.io.File aFile, org.w3c.dom.Document aDocument)
aFile
- 保存先ファイルaDocument
- Documentインスタンス5.1.9.0 (2010/08/01) Closeされないバグを修正 |
|
openGion 5.5.4.0 | ||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |