public class IntColumnParser extends Object implements ColumnParser
指定された文字列をパースし、int型に変換する。 変換結果をファイル行オブジェクトのint型の属性に値を格納する。
public void parse(String column, Object t, Method method, String columnFormat) throws NumberFormatException, IllegalArgumentException, IllegalAccessException, InvocationTargetException
parse
インタフェース内 ColumnParser
column
- カラムの文字列t
- ファイル行オブジェクトmethod
- カラムの文字列をファイル行オブジェクトに格納するメソッドcolumnFormat
- パースする際のフォーマット文字列IllegalArgumentException
- フォーマット文字列がフォーマットとして不正であるときNumberFormatException
- 入力文字列が整数以外の場合。IllegalAccessException
- ファイル行オブジェクトへの設定が失敗したときInvocationTargetException
- ファイル行オブジェクトのメソッドが例外をスローしたときCopyright © 2014 NTT DATA Corporation.