|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.yworks.yfiles.server.tiles.support.JSONSupport
Provides static utility methods for JSON encoding
| Method Summary | |
static String |
escapeString(String str)
Escapes the given string according to the JSON format specification. |
static String |
escapeStringNoQuotes(String str)
Escapes the given string according to the JSON format specification. |
static String |
pointString(YPoint point)
returns a string in JSON format for the given point. |
static String |
rectangleString(Rectangle rectangle)
returns a string in JSON format for the given rectangle. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static String escapeString(String str)
response.setContentType("text/plain;charset=UTF-8");.
str - The string to be escaped.
public static String escapeStringNoQuotes(String str)
response.setContentType("text/plain;charset=UTF-8");.
str - The string to be escaped.
public static String rectangleString(Rectangle rectangle)
null,
null is returned.
Example:
rectangle - a rectangle
nullpublic static String pointString(YPoint point)
null,
null is returned.
Example:
point - a point
null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||