これが私の BeanIO xml 構成ファイルです。
<beanio xmlns="http://www.beanio.org/2011/01"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.beanio.org/2011/01 http://www.beanio.org/2011/01 /mapping.xsd">
<stream name="Test" format="delimited">
<record name="TestRow" minOccurs="1" maxOccurs="unbounded" class="com.company.TestRow">
<field name="transactionDate" type="date" format="MM/dd/yyyy"/>
<field name="userId" type="string"/>
<field name="clientName" type="string"/>
</record>
</stream>
</beanio>
問題は、このxmlファイルを呼び出してファイルを解析するクラスによって「MM/dd/yyyy」を動的に設定する必要があることです。日付形式はユーザー設定に依存するためです。
それはなんとかできますか?