|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jasperreports.engine.util.JRStringUtil
public final class JRStringUtil
| Field Summary | |
|---|---|
protected static String |
JAVA_IDENTIFIER_PREFIX
|
| Method Summary | |
|---|---|
static String |
escapeJavaScript(String input)
Escapes a text so that it can be used as a Java String literal. |
static String |
escapeJavaStringLiteral(String text)
Escapes a text so that it can be used as a Java String literal. |
static String |
getJavaIdentifier(String name)
Takes a name and returns the same if it is a Java identifier; else it substitutes the illegal characters so that it can be an identifier |
static String |
getString(Object value)
|
static List<Integer> |
getTabIndexes(String text)
|
static String |
htmlEncode(String text)
|
static String |
replaceCRwithLF(String text)
This method replaces all occurrences of the CR character with the LF character, except when the CR is immediately followed by a LF (CRLF sequences), in which case the CR is removed. |
static String |
xmlEncode(String text)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final String JAVA_IDENTIFIER_PREFIX
| Method Detail |
|---|
public static String replaceCRwithLF(String text)
public static String xmlEncode(String text)
public static String htmlEncode(String text)
public static String getJavaIdentifier(String name)
name - public static String escapeJavaStringLiteral(String text)
text - the text
public static String escapeJavaScript(String input)
input - public static List<Integer> getTabIndexes(String text)
public static String getString(Object value)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||