Class PmdXmlToViolationsCommand

java.lang.Object
com.streamconverter.command.AbstractStreamCommand
com.streamconverter.pmd.command.PmdXmlToViolationsCommand
All Implemented Interfaces:
IStreamCommand

PMD XML レポートを PmdViolation オブジェクトのストリームに変換するコマンド。

入力: PMD XML レポートの InputStream

出力: ObjectOutputStreamPmdViolation を順次 writeObject

StAX(XMLStreamReader)による1件ずつのストリーム処理を行うため、大規模リポジトリでも OOM が発生しない。

PMD XML 構造: <pmd><file name="..."><violation ...>テキスト</violation></file></pmd>