org.gcube.data.harmonization.occurrence
Class Utils

java.lang.Object
  extended by org.gcube.data.harmonization.occurrence.Utils

public class Utils
extends Object


Constructor Summary
Utils()
           
 
Method Summary
protected static String quote(String string)
          Produce a string in double quotes with backslash sequences in all the right places.
static String toJSon(ResultSet resultSet, Long count)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utils

public Utils()
Method Detail

toJSon

public static String toJSon(ResultSet resultSet,
                            Long count)
                     throws SQLException
Throws:
SQLException

quote

protected static String quote(String string)
Produce a string in double quotes with backslash sequences in all the right places. A backslash will be inserted within
Parameters:
string - A String
Returns:
A String correctly formatted for insertion in a JSON text.


Copyright © 2012. All Rights Reserved.