org.springframework.batch.item.excel.jxl
Class JxlUtils

java.lang.Object
  extended by org.springframework.batch.item.excel.jxl.JxlUtils

Deprecated. since JExcelAPI is an abandoned project (no release since 2009, with serious bugs remaining)

@Deprecated
public final class JxlUtils
extends Object

Class containing utility methods to work with JXL.

Since:
0.5.0
Author:
Marten Deinum

Method Summary
static String[] extractContents(jxl.Cell[] row)
          Deprecated. Extract the content from the given row.
static boolean hasSheets(jxl.Workbook workbook)
          Deprecated. Check if the given workbook has any sheets.
static boolean isEmpty(jxl.Cell cell)
          Deprecated. Checks if the given cell is emtpy.
static boolean isEmpty(jxl.Cell[] row)
          Deprecated. Check if the given row (Cell[]) is empty.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isEmpty

public static boolean isEmpty(jxl.Cell cell)
Deprecated. 
Checks if the given cell is emtpy. The cell is empty if it contains no characters, it will trim spaces.

Parameters:
cell - to check
Returns:
true/false
See Also:
StringUtils.hasText(String)

isEmpty

public static boolean isEmpty(jxl.Cell[] row)
Deprecated. 
Check if the given row (Cell[]) is empty. It is considered empty when the row is null, the array is empty or all the cells in the row are empty.

Parameters:
row - to check
Returns:
true/false

hasSheets

public static boolean hasSheets(jxl.Workbook workbook)
Deprecated. 
Check if the given workbook has any sheets.

Parameters:
workbook - to check
Returns:
true/false

extractContents

public static String[] extractContents(jxl.Cell[] row)
Deprecated. 
Extract the content from the given row.

Parameters:
row - the row
Returns:
the content as String[]


Copyright © 2017. All rights reserved.