org.apache.wicket.ajax.json
Class JsonSequenceStringer

java.lang.Object
  extended by org.apache.wicket.ajax.json.JSONWriter
      extended by 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

Field Summary
 
Fields inherited from class org.apache.wicket.ajax.json.JSONWriter
mode, writer
 
Constructor Summary
JsonSequenceStringer()
           
 
Method Summary
 CharSequence toCharSequence()
           
 
Methods inherited from class org.apache.wicket.ajax.json.JSONWriter
array, endArray, endObject, key, object, value, value, value, value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsonSequenceStringer

public JsonSequenceStringer()
Method Detail

toCharSequence

public CharSequence toCharSequence()
Returns:
JSON text as a CharSequence


Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.