T
- XMLに変換するJavaオブジェクトのクラス型public class XMLContentsWriter<T> extends Object implements Closeable
コンストラクタと説明 |
---|
XMLContentsWriter(OutputStream stream,
Class<T> classToBeBound)
デフォルトエンコーディング'(UTF-8)で出力ストリームに書きこむXMLContentsWriterを生成します。
|
XMLContentsWriter(OutputStream stream,
Class<T> classToBeBound,
Map<String,Object> option)
エクスポートオプションの設定を利用して出力ストリームに書きこみを行うXMLContentsReaderを生成します。
|
XMLContentsWriter(OutputStream stream,
Class<T> classToBeBound,
String encoding)
指定されたエンコーディング'で出力ストリームに書きこむXMLContentsWriterを生成します。
|
XMLContentsWriter(OutputStream stream,
Class<T> classToBeBound,
String encoding,
boolean formatXml)
指定されたエンコーディング'で出力ストリームに書きこむXMLContentsWriterを生成します。
|
XMLContentsWriter(OutputStream stream,
Class<T> classToBeBound,
String encoding,
boolean formatXml,
boolean validateXml)
指定されたエンコーディング'で出力ストリームに書きこむXMLContentsWriterを生成します。
|
XMLContentsWriter(OutputStream stream,
Class<T> classToBeBound,
String encoding,
boolean formatXml,
boolean validateXml,
String rootTagName)
指定されたエンコーディング'で出力ストリームに書きこむXMLContentsWriterを生成します。
|
public XMLContentsWriter(OutputStream stream, Class<T> classToBeBound) throws XMLContentsWriterException
stream
- 出力ストリームclassToBeBound
- バインドクラスXMLContentsWriterException
- スキーマの取得に失敗した場合等、書き込みができない場合にスローされます。public XMLContentsWriter(OutputStream stream, Class<T> classToBeBound, Map<String,Object> option) throws XMLContentsWriterException
stream
- 出力ストリームclassToBeBound
- バインドクラスoption
- エクスポートオプションXMLContentsWriterException
- スキーマの取得に失敗した場合等、書き込みができない場合にスローされます。public XMLContentsWriter(OutputStream stream, Class<T> classToBeBound, String encoding) throws XMLContentsWriterException
stream
- 出力ストリームclassToBeBound
- バインドクラスencoding
- エンコーディングXMLContentsWriterException
- スキーマの取得に失敗した場合等、書き込みができない場合にスローされます。public XMLContentsWriter(OutputStream stream, Class<T> classToBeBound, String encoding, boolean formatXml) throws XMLContentsWriterException
stream
- 出力ストリームclassToBeBound
- バインドクラスencoding
- エンコーディングformatXml
- XMLのフォーマットを行うかどうかXMLContentsWriterException
- スキーマの取得に失敗した場合等、書き込みができない場合にスローされます。public XMLContentsWriter(OutputStream stream, Class<T> classToBeBound, String encoding, boolean formatXml, boolean validateXml) throws XMLContentsWriterException
stream
- 出力ストリームclassToBeBound
- バインドクラスencoding
- エンコーディングformatXml
- XMLのフォーマットを行うかどうかvalidateXml
- スキーマバリデーションを行うかどうかXMLContentsWriterException
- スキーマの取得に失敗した場合等、書き込みができない場合にスローされます。public XMLContentsWriter(OutputStream stream, Class<T> classToBeBound, String encoding, boolean formatXml, boolean validateXml, String rootTagName) throws XMLContentsWriterException
stream
- 出力ストリームclassToBeBound
- バインドクラスencoding
- エンコーディングformatXml
- XMLのフォーマットを行うかどうかvalidateXml
- スキーマバリデーションを行うかどうかrootTagName
- ルートタグ名XMLContentsWriterException
- スキーマの取得に失敗した場合等、書き込みができない場合にスローされます。public void close()
close
インタフェース内 Closeable
close
インタフェース内 AutoCloseable
public void flush()
public void write(T content) throws XMLContentsWriterException
content
- 要素XMLContentsWriterException
- 要素の書き込みに失敗した場合にスローされます。Copyright © 2012 NTT DATA INTRAMART CORPORATION