public interface Client
Objects.| Modifier and Type | Field and Description |
|---|---|
static CSVFormat |
CSV_FORMAT
The comma-separated CSV format.
|
| Modifier and Type | Method and Description |
|---|---|
ImmutableList<CSVRecord> |
fromCSV(java.lang.String url)
Deserializes a CSV file from a specified URL into an
ImmutableList of CSVRecords. |
<T> java.util.Optional<T> |
fromJson(java.lang.String url,
java.lang.Class<T> classOfT)
Deserializes a JSON file from a specified URL into an object of the specified type.
|
<T> java.util.Optional<T> |
fromJson(java.lang.String url,
java.lang.reflect.Type typeOfT)
Deserializes a JSON file from a specified URL into an object of the specified type.
|
static final CSVFormat CSV_FORMAT
<T> java.util.Optional<T> fromJson(java.lang.String url,
java.lang.reflect.Type typeOfT)
throws java.io.IOException
T - The type of the desired objecturl - The URL to deserialize from.typeOfT - The specific genericized type of src.Optional containing an object of type T from the json, or Optional.empty() if the URL could not be deserialized.java.io.IOException - If an I/O error occurs.<T> java.util.Optional<T> fromJson(java.lang.String url,
java.lang.Class<T> classOfT)
throws java.io.IOException
T - The type of the desired objecturl - The URL to deserialize from.classOfT - The class of T.Optional.empty() if the URL could not be deserialized.java.io.IOException - If an I/O error occurs.ImmutableList<CSVRecord> fromCSV(java.lang.String url) throws java.io.IOException
ImmutableList of CSVRecords.url - The URL to deserialize from.ImmutableList of CSVRecords.java.io.IOException - If an I/O error occurs.