|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.poi.ss.util.WorkbookUtil
public class WorkbookUtil
Helper methods for when working with Usermodel Workbooks
Constructor Summary | |
---|---|
WorkbookUtil()
|
Method Summary | |
---|---|
static java.lang.String |
createSafeSheetName(java.lang.String nameProposal)
Creates a valid sheet name, which is conform to the rules. |
static java.lang.String |
createSafeSheetName(java.lang.String nameProposal,
char replaceChar)
Creates a valid sheet name, which is conform to the rules. |
static void |
validateSheetName(java.lang.String sheetName)
Validates sheet name. |
static void |
validateSheetState(int state)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WorkbookUtil()
Method Detail |
---|
public static final java.lang.String createSafeSheetName(java.lang.String nameProposal)
Workbook.setSheetName(int, String)
.
nameProposal
- can be any string, will be truncated if necessary,
allowed to be null
public static final java.lang.String createSafeSheetName(java.lang.String nameProposal, char replaceChar)
Workbook.setSheetName(int, String)
.
nameProposal
- can be any string, will be truncated if necessary,
allowed to be nullreplaceChar
- the char to replace invalid characters.
public static void validateSheetName(java.lang.String sheetName)
The character count MUST be greater than or equal to 1 and less than or equal to 31. The string MUST NOT contain the any of the following characters:
sheetName
- the name to validatepublic static void validateSheetState(int state)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |