Example #1
0
 public void endArea() {
   for (ISheetHandler handler : handlers) {
     try {
       handler.endArea();
     } catch (Exception e) {
       logger.error(StringUtils.EMPTY, e);
     }
   }
 }
Example #2
0
 public void endSheet() {
   for (ISheetHandler handler : handlers) {
     try {
       handler.endSheet();
     } catch (Exception e) {
       logger.error(e);
     }
   }
 }
Example #3
0
 public void row(String[] row) {
   for (ISheetHandler handler : handlers) {
     try {
       handler.row(row);
     } catch (Exception e) {
       logger.error(StringUtils.EMPTY, e);
     }
   }
 }
Example #4
0
 public void header(String[] header) {
   for (ISheetHandler handler : handlers) {
     try {
       handler.header(header);
     } catch (Exception e) {
       logger.error(StringUtils.EMPTY, e);
     }
   }
 }
Example #5
0
 public void keyValue(String key, String value) {
   for (ISheetHandler handler : handlers) {
     try {
       handler.keyValue(key, value);
     } catch (Exception e) {
       logger.error(StringUtils.EMPTY, e);
     }
   }
 }
Example #6
0
 public void startArea(String startTag) {
   for (ISheetHandler handler : handlers) {
     try {
       handler.startArea(startTag);
     } catch (Exception e) {
       logger.error(StringUtils.EMPTY, e);
     }
   }
 }
Example #7
0
 public void startSheet(Sheet sheet) {
   for (ISheetHandler handler : handlers) {
     try {
       handler.startSheet(sheet);
     } catch (Exception e) {
       logger.error(StringUtils.EMPTY, e);
     }
   }
 }
Example #8
0
 public void startBlock(String startTag, int type) {
   currentBlockTag = startTag;
   currentBlockType = type;
   for (ISheetHandler handler : handlers) {
     try {
       handler.startBlock(startTag, type);
     } catch (Exception e) {
       logger.error(StringUtils.EMPTY, e);
     }
   }
 }
Example #9
0
  public void endBlock() {
    for (ISheetHandler handler : handlers) {
      try {
        handler.endBlock();
      } catch (Exception e) {
        logger.error(StringUtils.EMPTY, e);
      }
    }

    switch (currentBlockType) {
      case BlockTypes.TABLE:
        headerFound = false;
        break;
      case BlockTypes.TEXT:
        text = new StringBuffer();
        break;
    }
  }