1 16 17 package org.apache.cocoon.components.elementprocessor.impl.poi.hssf.elements; 18 19 import org.apache.cocoon.components.elementprocessor.types.NumericConverter; 20 import org.apache.cocoon.components.elementprocessor.types.NumericResult; 21 22 import java.io.IOException ; 23 24 33 public class EPMaxRow extends BaseElementProcessor { 34 private NumericResult _max_row; 35 36 39 public EPMaxRow() { 40 super(null); 41 _max_row = null; 42 } 43 44 49 public int getMaxRow() throws IOException { 50 if (_max_row == null) { 51 _max_row = NumericConverter.extractPositiveInteger(getData()); 52 } 53 return _max_row.intValue(); 54 } 55 } | Popular Tags |