co.uk.sentinelweb.views.draw.file.export.json.v2.string
Class SJSON

java.lang.Object
  extended by co.uk.sentinelweb.views.draw.file.export.json.v2.string.SJSON

public class SJSON
extends java.lang.Object


Field Summary
static java.lang.String BEGIN_ARR
           
static java.lang.String BEGIN_OBJ
           
static java.lang.String END_ARR
           
static java.lang.String END_OBJ
           
static java.lang.String OBJ_DELIM
           
static java.lang.String QUOTE
           
static java.lang.String SEPARATOR
           
 
Constructor Summary
SJSON()
           
 
Method Summary
static void arraySep(java.io.Writer w, java.util.Collection<?> c, int i)
           
static void beginArr(java.io.Writer w)
           
static void beginObj(java.io.Writer w)
           
static void endArr(java.io.Writer w)
           
static void endObj(java.io.Writer w)
           
static void quote(java.io.Writer w)
           
static void sep(java.io.Writer w)
           
static void write(java.io.Writer w, java.lang.String jsonFragment)
           
static void writeBoolean(java.io.Writer w, java.lang.String id, boolean val)
           
static void writeDE(java.io.Writer w, DrawingElement de, java.lang.String type)
           
static void writeFloat(java.io.Writer w, java.lang.String id, float val)
           
static void writeID(java.io.Writer w, java.lang.String id)
           
static void writeInt(java.io.Writer w, java.lang.String id, int val)
           
static void writeJSON(java.io.Writer w, JSONObject o)
           
static void writeLong(java.io.Writer w, java.lang.String id, long val)
           
static void writeString(java.io.Writer w, java.lang.String id, java.lang.String value)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BEGIN_OBJ

public static final java.lang.String BEGIN_OBJ
See Also:
Constant Field Values

END_OBJ

public static final java.lang.String END_OBJ
See Also:
Constant Field Values

BEGIN_ARR

public static final java.lang.String BEGIN_ARR
See Also:
Constant Field Values

END_ARR

public static final java.lang.String END_ARR
See Also:
Constant Field Values

SEPARATOR

public static final java.lang.String SEPARATOR
See Also:
Constant Field Values

QUOTE

public static final java.lang.String QUOTE
See Also:
Constant Field Values

OBJ_DELIM

public static final java.lang.String OBJ_DELIM
See Also:
Constant Field Values
Constructor Detail

SJSON

public SJSON()
Method Detail

beginObj

public static void beginObj(java.io.Writer w)
                     throws java.io.IOException
Throws:
java.io.IOException

endObj

public static void endObj(java.io.Writer w)
                   throws java.io.IOException
Throws:
java.io.IOException

beginArr

public static void beginArr(java.io.Writer w)
                     throws java.io.IOException
Throws:
java.io.IOException

endArr

public static void endArr(java.io.Writer w)
                   throws java.io.IOException
Throws:
java.io.IOException

sep

public static void sep(java.io.Writer w)
                throws java.io.IOException
Throws:
java.io.IOException

quote

public static void quote(java.io.Writer w)
                  throws java.io.IOException
Throws:
java.io.IOException

writeString

public static void writeString(java.io.Writer w,
                               java.lang.String id,
                               java.lang.String value)
                        throws java.io.IOException
Throws:
java.io.IOException

writeInt

public static void writeInt(java.io.Writer w,
                            java.lang.String id,
                            int val)
                     throws java.io.IOException
Throws:
java.io.IOException

writeLong

public static void writeLong(java.io.Writer w,
                             java.lang.String id,
                             long val)
                      throws java.io.IOException
Throws:
java.io.IOException

writeFloat

public static void writeFloat(java.io.Writer w,
                              java.lang.String id,
                              float val)
                       throws java.io.IOException
Throws:
java.io.IOException

writeBoolean

public static void writeBoolean(java.io.Writer w,
                                java.lang.String id,
                                boolean val)
                         throws java.io.IOException
Throws:
java.io.IOException

writeID

public static void writeID(java.io.Writer w,
                           java.lang.String id)
                    throws java.io.IOException
Throws:
java.io.IOException

writeJSON

public static void writeJSON(java.io.Writer w,
                             JSONObject o)
                      throws java.io.IOException
Throws:
java.io.IOException

write

public static void write(java.io.Writer w,
                         java.lang.String jsonFragment)
                  throws java.io.IOException
Throws:
java.io.IOException

arraySep

public static void arraySep(java.io.Writer w,
                            java.util.Collection<?> c,
                            int i)
                     throws java.io.IOException
Throws:
java.io.IOException

writeDE

public static void writeDE(java.io.Writer w,
                           DrawingElement de,
                           java.lang.String type)
                    throws java.io.IOException
Throws:
java.io.IOException