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 EPMaxCol extends BaseElementProcessor { 34 private NumericResult _max_col; 35 36 39 public EPMaxCol() { 40 super(null); 41 _max_col = null; 42 } 43 44 49 public int getMaxCol() throws IOException { 50 if (_max_col == null) { 51 _max_col = NumericConverter.extractPositiveInteger(getData()); 52 } 53 return _max_col.intValue(); 54 } 55 } | Popular Tags |