0

これらのレコードの 1 つを介して BindyFixedLengthDataFormat オブジェクトを初期化する FixedLengthRecord オブジェクトがいくつかあります。最初に、その POJO がヘッダーまたはフッターであるかどうかを知る必要があります (これらの pojo に注釈を付けました)。次に、その他の手順を実行します。

from(myUri)
    .split().tokenize(myToken)
        .process(initializeMyFixedLengthDataFormat)
        .choice()
            .when(/*fixedLengthRecord.IsHeader*/)
                 //do something
            .when(/*fixedLengthRecord.IsFooter*/)
                 //do something
            .otherwishe()
                 //do something
        .end()
    .end()

私の問題は、その FixedLengthRecord isHeader/isFooter であるかどうかを取得する方法がわからないことです。どんな助けにも感謝します。(Google は役に立ちませんでした。)

4

1 に答える 1

0

bindy object (for my case an object of type BindyFixedLengthDataFormat) has a factory property (of type BindyAbstractFactory). For FixedLengthDataFormat I casted the factory object to BindyFixedLengthFactory and reached isHeader/isFooter methods.

于 2016-02-24T07:44:20.133 に答える