インタフェース
javax.xml.stream.events.XMLEventの使用
-
XMLEventを使用するパッケージ パッケージ 説明 javax.xml.stream Streaming API for XML (StAX)のインタフェースとクラスを定義します。javax.xml.stream.events Streaming API for XML (StAX)のイベント・インタフェースを定義します。javax.xml.stream.util Streaming API for XML (StAX)のユーティリティ・クラスを提供します。 -
-
javax.xml.streamでのXMLEventの使用
XMLEventを返すjavax.xml.stream内のメソッド 修飾子と型 メソッド 説明 XMLEvent
XMLEventReader. nextEvent()
次のXMLEventを取得します。XMLEvent
XMLEventReader. nextTag()
START_ELEMENTまたはEND_ELEMENTに達するまで、意味のない空白イベントをスキップします。XMLEvent
XMLEventReader. peek()
次のXMLEventを調べます。ただし、ストリームから読み取ることはしません。XMLEvent型のパラメータを持つjavax.xml.stream内のメソッド 修飾子と型 メソッド 説明 boolean
EventFilter. accept(XMLEvent event)
このイベントがこのストリームの一部であるかどうかをテストします。void
XMLEventWriter. add(XMLEvent event)
出力ストリームにイベントを追加します。START_ELEMENTを追加すると、新しい名前空間のスコープが開きます。これは、対応するEND_ELEMENTが書き込まれると閉じます。 -
javax.xml.stream.eventsでのXMLEventの使用
javax.xml.stream.events内のXMLEventのサブインタフェース 修飾子と型 インタフェース 説明 interface
Attribute
属性に関する情報を含むインタフェースです。interface
Characters
Charactersイベントに対するインタフェースを記述します。interface
Comment
コメント・イベントのインタフェースです。interface
DTD
DTDを処理するイベントの最上位のインタフェースです。interface
EndDocument
ドキュメントの末尾を表すマーカー・インタフェースです。interface
EndElement
要素終了イベントのインタフェースです。interface
EntityDeclaration
エンティティ宣言を処理するためのインタフェースです。このインタフェースは、解析対象外のエンティティ宣言の記録と報告に使用されます。interface
EntityReference
Entityイベントを処理するためのインタフェースです。interface
Namespace
名前空間に関する情報を含むインタフェースです。interface
NotationDeclaration
表記法宣言を処理するためのインタフェースです。表記法宣言イベントの通知を受け取ります。interface
ProcessingInstruction
処理命令で見つかったデータを記述するインタフェースです。interface
StartDocument
文書開始イベントのインタフェースです。interface
StartElement
StartElementインタフェースは、開始要素に関する情報へのアクセスを提供します。 -
javax.xml.stream.utilでのXMLEventの使用
XMLEventを返すjavax.xml.stream.util内のメソッド 修飾子と型 メソッド 説明 XMLEvent
XMLEventAllocator. allocate(XMLStreamReader reader)
このメソッドは、指定されたイベントにXMLStreamReaderの現在の状態を割り当てます。XMLEvent型のパラメータを持つjavax.xml.stream.util内のメソッド 修飾子と型 メソッド 説明 void
XMLEventConsumer. add(XMLEvent event)
このメソッドは、コンシューマにイベントを追加します。
-