Class ConvertCommand
java.lang.Object
com.streamconverter.command.AbstractStreamCommand
com.streamconverter.command.impl.xml.ConvertCommand
- All Implemented Interfaces:
IStreamCommand
XML変換コマンドクラス
このクラスは、XML形式のデータを変換するためのコマンドを実装します。 ストリームを使用して、XMLデータを読み込み、変換後のデータを出力します。 変換対象のXPathである箇所を特定したあとに、変換処理を実行することを想定しています。
-
Field Summary
Fields inherited from class com.streamconverter.command.AbstractStreamCommand
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecuteInternal(InputStream inputStream, OutputStream outputStream) XML変換コマンドの実行Methods inherited from class com.streamconverter.command.AbstractStreamCommand
execute, execute, getCommandDetails
-
Constructor Details
-
ConvertCommand
デフォルトコンストラクタ- Parameters:
rule- 変換ルールtreePath- 変換対象のTreePath
-
-
Method Details
-
executeInternal
protected void executeInternal(InputStream inputStream, OutputStream outputStream) throws IOException XML変換コマンドの実行- Specified by:
executeInternalin classAbstractStreamCommand- Parameters:
inputStream- 入力ストリームoutputStream- 出力ストリーム- Throws:
IOException- 入出力エラーが発生した場合StreamProcessingException- XML処理エラーが発生した場合
-