org.apache.wink.json4j.compat.impl
Class ApacheJSONStringerDelegate
java.lang.Object
org.apache.wink.json4j.compat.impl.ApacheJSONWriterDelegate
org.apache.wink.json4j.compat.impl.ApacheJSONStringerDelegate
- All Implemented Interfaces:
- JSONStringer, JSONWriter
public class ApacheJSONStringerDelegate
- extends ApacheJSONWriterDelegate
- implements JSONStringer
Method Summary |
void |
close()
Over-ride to do nothing for the stringer. |
String |
toString()
Return a string of the stringer contents. |
Methods inherited from class org.apache.wink.json4j.compat.impl.ApacheJSONWriterDelegate |
array, endArray, endObject, flush, key, object, value, value, value, value, value |
Methods inherited from interface org.apache.wink.json4j.compat.JSONWriter |
array, endArray, endObject, flush, key, object, value, value, value, value, value |
ApacheJSONStringerDelegate
public ApacheJSONStringerDelegate()
toString
public String toString()
- Return a string of the stringer contents. This also terminates the
Stringer and it cannot be used again. If any errors occur while trying to generate the JSON
it returns an empty string.
- Specified by:
toString
in interface JSONStringer
- Overrides:
toString
in class Object
close
public void close()
throws IOException,
IllegalStateException
- Over-ride to do nothing for the stringer. Only toString() terminates the stringer object.
- Specified by:
close
in interface JSONWriter
- Overrides:
close
in class ApacheJSONWriterDelegate
- Throws:
IOException
IllegalStateException
Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.