org.apache.wicket.ajax.json
Class JsonSequenceStringer
java.lang.Object
org.apache.wicket.ajax.json.JSONWriter
org.apache.wicket.ajax.json.JsonSequenceStringer
public class JsonSequenceStringer
- extends JSONWriter
An efficient implementation of a JSON stringer. The efficiency comes from the fact that istead of
a String
this class can return a CharSequence
. This is better for downstream
method that can accept a CharSequence
becuase it requires one less memory copy of the
internal AppendingStringBufferWriter
to a String
to get the JSON.
- Author:
- igor
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JsonSequenceStringer
public JsonSequenceStringer()
toCharSequence
public CharSequence toCharSequence()
- Returns:
- JSON text as a
CharSequence
Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.