Class SpeechTimestampTypeAdapter
java.lang.Object
com.google.gson.TypeAdapter<SpeechTimestamp>
com.ibm.watson.speech_to_text.v1.util.SpeechTimestampTypeAdapter
public class SpeechTimestampTypeAdapter extends com.google.gson.TypeAdapter<SpeechTimestamp>
Type adapter to transform timestamp from json into objects and viseversa.
-
Constructor Summary
Constructors Constructor Description SpeechTimestampTypeAdapter()
-
Method Summary
Modifier and Type Method Description SpeechTimestamp
read(com.google.gson.stream.JsonReader reader)
void
write(com.google.gson.stream.JsonWriter writer, SpeechTimestamp speechTimestamp)
Methods inherited from class com.google.gson.TypeAdapter
fromJson, fromJson, fromJsonTree, nullSafe, toJson, toJson, toJsonTree
-
Constructor Details
-
SpeechTimestampTypeAdapter
public SpeechTimestampTypeAdapter()
-
-
Method Details
-
read
- Specified by:
read
in classcom.google.gson.TypeAdapter<SpeechTimestamp>
- Throws:
IOException
-
write
public void write(com.google.gson.stream.JsonWriter writer, SpeechTimestamp speechTimestamp) throws IOException- Specified by:
write
in classcom.google.gson.TypeAdapter<SpeechTimestamp>
- Throws:
IOException
-