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