public class TableNameUtil extends Object
| Constructor and Description |
|---|
TableNameUtil() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkTableName(CharSequence name)
Check if the table name is ok.
|
String |
escapeTableName(CharSequence tableName)
9.2.1 Referencing Table Cells
"If the name of the table contains blanks, dots “.”
|
String |
sanitizeTableName(CharSequence name)
Change the table to comply with LO limitations (excepted for
the check of duplicate names), but may the conditions may be relaxed in a future version.
|
String |
unescapeFilename(String filename) |
String |
unescapeQuotes(String str) |
public void checkTableName(CharSequence name)
name - the name to checkIllegalArgumentException - if the table name is not accepted.public String sanitizeTableName(CharSequence name)
name - the name to checkpublic String escapeTableName(CharSequence tableName)
tableName - the name of the tablepublic String unescapeFilename(String filename) throws ParseException, UnsupportedEncodingException
filename - the nameParseException - if there are no quotesUnsupportedEncodingException - if the encoding is not UTF-8public String unescapeQuotes(String str) throws ParseException
str - the nameParseException - if there are no quotesCopyright © 2016–2021. All rights reserved.