public class

JSONWriter

extends Object
java.lang.Object
   ↳ com.rabbitmq.tools.json.JSONWriter

Summary

Public Constructors
JSONWriter()
JSONWriter(boolean indenting)
Public Methods
boolean getIndentMode()
void setIndentMode(boolean value)
String write(char c)
Object write(double d)
String write(long n)
String write(Object object)
String write(boolean b)
void writeLimited(Class<?> klass, Object object, String[] properties)
Write only a certain subset of the object's properties and fields.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public JSONWriter ()

public JSONWriter (boolean indenting)

Public Methods

public boolean getIndentMode ()

public void setIndentMode (boolean value)

public String write (char c)

public Object write (double d)

public String write (long n)

public String write (Object object)

public String write (boolean b)

public void writeLimited (Class<?> klass, Object object, String[] properties)

Write only a certain subset of the object's properties and fields.

Parameters
klass the class to look up properties etc in
object the object
properties explicit list of property/field names to include - may be null for "all"