示例#1
0
 public static void main(String[] args) {
   StringReader r = new StringReader("    --1234,");
   ShortTermMemoryReader reader = new ShortTermMemoryReader(r);
   IntegerReadService service = new IntegerReadService();
   try {
     Integer i = service.read(reader);
     System.out.println(i);
   } catch (Exception e) {
     System.out.println(((RowColumnReaderException) e).getColumn());
     e.printStackTrace();
   }
 }