Java 类org.codehaus.jackson.io.JsonStringEncoder 实例源码

项目:sstable-adaptor    文件:Json.java   
/**
 * Quotes string contents using standard JSON quoting.
 */
public static String quoteAsJsonString(String s)
{
    return new String(JsonStringEncoder.getInstance().quoteAsString(s));
}
项目:es-hadoop-v2.2.0    文件:StringUtils.java   
public static char[] jsonEncoding(String rawString) {
    return JsonStringEncoder.getInstance().quoteAsString(rawString);
}
项目:scylla-tools-java    文件:Json.java   
/**
 * Quotes string contents using standard JSON quoting.
 */
public static String quoteAsJsonString(String s)
{
    return new String(JsonStringEncoder.getInstance().quoteAsString(s));
}
项目:gae-jersey-guice-jsf    文件:Jackson1.java   
public static String escape(String text)
{
    return new String(JsonStringEncoder.getInstance().quoteAsUTF8(text));
}
项目:elasticsearch-hadoop    文件:StringUtils.java   
public static char[] jsonEncoding(String rawString) {
    return JsonStringEncoder.getInstance().quoteAsString(rawString);
}