1 16 17 package org.apache.cocoon.components.elementprocessor.impl.poi.hssf.elements; 18 19 import java.io.IOException ; 20 21 31 public class EPContent extends BaseElementProcessor { 32 private String _content; 33 34 37 public EPContent() { 38 super(null); 39 _content = null; 40 } 41 42 45 public String getContent() { 46 if (_content == null) { 47 try { 48 _content = getData(); 49 } catch (NullPointerException ignored) { 50 } 52 } 53 return _content; 54 } 55 56 60 public void endProcessing() throws IOException { 61 String thecontent = getContent(); 62 if (thecontent != null && !thecontent.trim().equals("")) 63 getCell().setContent(getContent()); 64 } 65 } | Popular Tags |