public static Gson makeGson ( final boolean pretty )
    {
        final GsonBuilder gb = new GsonBuilder ();

        if ( pretty )
        {
            gb.setPrettyPrinting ();
        }

        gb.registerTypeAdapter ( Node.class, new NodeAdapter () );
        gb.registerTypeAdapter ( byte[].class, new ByteArrayAdapter () );

        return gb.create ();
    }
public static Gson makeGson ( final boolean pretty )
    {
        final GsonBuilder gb = new GsonBuilder ();

        if ( pretty )
        {
            gb.setPrettyPrinting ();
        }

        gb.registerTypeAdapter ( Node.class, new NodeAdapter () );
        gb.registerTypeAdapter ( byte[].class, new ByteArrayAdapter () );

        return gb.create ();
    }
public static Gson makeGson ( final boolean pretty ) { final GsonBuilder gb = new GsonBuilder ( ) ; if ( pretty ) { gb . setPrettyPrinting ( ) ; } gb . registerTypeAdapter ( Node . class , new NodeAdapter ( ) ) ; gb . registerTypeAdapter ( byte [ ] . class , new ByteArrayAdapter ( ) ) ; return gb . create ( ) ; }
Make an appropriate Gson parser to processing ChannelData instances

@param pretty
if the gson output should be "pretty printed"
@return the new gson instance
Make an appropriate Gson parser to processing ChannelData instances