|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectkinugasa.contents.text.TextIO<XMLElement>
kinugasa.contents.text.XMLReader
public final class XMLReader
XMLファイルの展開とデータの管理を行います.
XMLデータはXMLElementクラスを使用し、木構造で表現されます。
ロードされたXMLReaderが持つノードは、ルートの1つのみです。
ロード時には、DTDの検査が行われます。DTDが到達できないパスに配置されている場合や不正な
DTDパスを指定した場合はCoutentsFileNotFoundExceptionが投げられます。
| フィールドの概要 | |
|---|---|
private static long |
serialVersionUID
|
| クラス kinugasa.contents.text.TextIO から継承されたフィールド |
|---|
data, file |
| コンストラクタの概要 | |
|---|---|
XMLReader(java.io.File file)
|
|
XMLReader(java.lang.String filePath)
|
|
| メソッドの概要 | |
|---|---|
XMLReader |
add(java.util.Collection<? extends XMLElement> obj)
要素をこのテキストファイルの末尾に追加します. |
XMLReader |
add(TextIO<? extends XMLElement> other)
他のTextIOのすべての要素を、このテキストファイルの末尾に追加します. |
XMLReader |
add(XMLElement... obj)
要素をこのテキストファイルの末尾に追加します. |
XMLReader |
add(XMLElement obj)
要素をこのテキストファイルの末尾に追加します. |
XMLReader |
clear()
全ての要素を破棄します. |
XMLReader |
free()
コンテンツをメモリから破棄出来るようにします. |
boolean |
isLoaded()
このオブジェクトが、すでにロードされているかを検査します. |
XMLReader |
load()
コンテンツをロードして展開します. |
private static javax.xml.parsers.DocumentBuilderFactory |
openBuilderFactory()
|
XMLReader |
remove(java.util.Collection<? extends XMLElement> obj)
要素をこのテキストファイルから削除します. |
XMLReader |
remove(TextIO<? extends XMLElement> other)
他のTextIOのすべての要素を、このテキストファイルから削除します. |
XMLReader |
remove(XMLElement... obj)
要素をこのテキストファイルから削除します. |
XMLReader |
remove(XMLElement obj)
要素をこのテキストファイルから削除します. |
| クラス kinugasa.contents.text.TextIO から継承されたメソッド |
|---|
getData, getFile, getFirst, getName, isEmpty, iterator, printAll, size, toString |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| フィールドの詳細 |
|---|
private static final long serialVersionUID
| コンストラクタの詳細 |
|---|
public XMLReader(java.io.File file)
throws ContentsFileNotFoundException
ContentsFileNotFoundException
public XMLReader(java.lang.String filePath)
throws ContentsFileNotFoundException
ContentsFileNotFoundException| メソッドの詳細 |
|---|
private static javax.xml.parsers.DocumentBuilderFactory openBuilderFactory()
public XMLReader load()
throws IllegalXMLFormatException,
ContentsFileNotFoundException,
ContentsIOException
Freeable の記述:
Freeable 内の loadIllegalXMLFormatException
ContentsFileNotFoundException
ContentsIOExceptionpublic XMLReader free()
Freeable の記述:
Freeable 内の freepublic boolean isLoaded()
Freeable の記述:
Freeable 内の isLoadedpublic XMLReader add(java.util.Collection<? extends XMLElement> obj)
TextIO の記述:
TextIO<XMLElement> 内の addobj - 追加するオブジェクトを指定します。public XMLReader add(TextIO<? extends XMLElement> other)
TextIO の記述:
TextIO<XMLElement> 内の addother - 追加するオブジェクトが含まれたTextIOを指定します。public XMLReader add(XMLElement obj)
TextIO の記述:
TextIO<XMLElement> 内の addobj - 追加するオブジェクトを指定します。public XMLReader add(XMLElement... obj)
TextIO の記述:
TextIO<XMLElement> 内の addobj - 追加するオブジェクトを指定します。public XMLReader clear()
TextIO の記述:
TextIO<XMLElement> 内の clearpublic XMLReader remove(java.util.Collection<? extends XMLElement> obj)
TextIO の記述:
TextIO<XMLElement> 内の removeobj - 削除するオブジェクトを指定します。public XMLReader remove(TextIO<? extends XMLElement> other)
TextIO の記述:
TextIO<XMLElement> 内の removeother - 削除するオブジェクトが含まれたTextIOを指定します。public XMLReader remove(XMLElement obj)
TextIO の記述:
TextIO<XMLElement> 内の removeobj - 削除するオブジェクトを指定します。public XMLReader remove(XMLElement... obj)
TextIO の記述:
TextIO<XMLElement> 内の removeobj - 削除するオブジェクトを指定します。
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||