org.eclipse.jetty.util.ajax
类 JSON.Literal
java.lang.Object
org.eclipse.jetty.util.ajax.JSON.Literal
- 所有已实现的接口:
- JSON.Generator
- 包容类:
- JSON
public static class JSON.Literal
- extends Object
- implements JSON.Generator
A Literal JSON generator A utility instance of JSON.Generator
that holds a pre-generated string on JSON text.
JSON.Literal
public JSON.Literal(String json)
- Construct a literal JSON instance for use by
JSON.toString(Object). If Log.isDebugEnabled() is
true, the JSON will be parsed to check validity
- 参数:
json - A literal JSON string.
toString
public String toString()
- 覆盖:
- 类
Object 中的 toString
addJSON
public void addJSON(Appendable buffer)
- 指定者:
- 接口
JSON.Generator 中的 addJSON
Copyright © 2013. All Rights Reserved.