public class JSONParser
extends java.lang.Object
Constructor and Description |
---|
JSONParser() |
Modifier and Type | Method and Description |
---|---|
void |
clearHashTable()
Clears out the hashtable.
|
void |
clearTupleList()
Clears out the arrayList of tuples.
|
void |
createHashTable(java.lang.String s)
Creates and populates the hashtable using the API response.
|
void |
createTuples(java.lang.String s)
Creates and populates the tuple arrayList using the API response.
|
java.lang.String |
getAPIResponse()
Retrieves the overall API response as one string.
|
HashAlgorithm<java.lang.Short,Exoplanet> |
getHashTable()
Retrieves the constructed hashtable.
|
java.util.ArrayList<Pair<java.lang.Short,Exoplanet>> |
getTupleList()
Retrieves an arrayList of the key value pairs.
|
void |
sendGet(java.lang.String u)
Pulls in the Kepler Object data, and builds up the API response.
|
public java.lang.String getAPIResponse()
public java.util.ArrayList<Pair<java.lang.Short,Exoplanet>> getTupleList()
public HashAlgorithm<java.lang.Short,Exoplanet> getHashTable()
public void clearHashTable()
public void clearTupleList()
public void sendGet(java.lang.String u) throws java.lang.Exception
u
- is the url with what and how much information to retrieve from the database.java.lang.Exception
- is used for the IO exceptions that might occur.public void createTuples(java.lang.String s)
s
- is the API response.public void createHashTable(java.lang.String s)
s
- is the API response.