public class HashCache
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
HashCache() |
Modifier and Type | Method and Description |
---|---|
void |
append(java.lang.String s)
Writes the API string tuple to disk at the end of the file.
|
java.lang.String |
getResponse()
Retrieves the API response from disk.
|
void |
overwrite(Triple<java.lang.String> t,
java.lang.String s)
Writes the API string tuple to disk.
|
java.time.LocalDateTime |
readTimeStamp()
Retrieves the localdatetime object from disk.
|
void |
writeTimeStamp(java.time.LocalDateTime l)
Writes the localdatetime object to disk.
|
public void overwrite(Triple<java.lang.String> t, java.lang.String s) throws java.io.IOException
t
- is the API call which is a giant strings
- is the API response which is a giant stringjava.io.IOException
- is used for the IO exceptions that might occurpublic java.lang.String getResponse() throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOException
- is used for the IO exceptions that might occurjava.lang.ClassNotFoundException
- is used for the class not found exceptions that might occurpublic void append(java.lang.String s) throws java.io.IOException
s
- is the API response which is a giant stringjava.io.IOException
- is used for the IO exceptions that might occurpublic void writeTimeStamp(java.time.LocalDateTime l) throws java.io.IOException
l
- is the localdatetime object.java.io.IOException
- is used for the IO exceptions that might occurpublic java.time.LocalDateTime readTimeStamp() throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOException
- is used for the IO exceptions that might occurjava.lang.ClassNotFoundException
- is used for the class not found exceptions that might occur