Package net.dona.doip.util
Class GsonUtility.StreamGsonTypeAdapter<T>
java.lang.Object
com.google.gson.TypeAdapter<Stream<T>>
net.dona.doip.util.GsonUtility.StreamGsonTypeAdapter<T>
- Type Parameters:
T
- the type of a StreamGsonTypeAdapter, stream, TypeAdapter, list, and object in a JSON reader
- Enclosing class:
- GsonUtility
public static class GsonUtility.StreamGsonTypeAdapter<T>
extends com.google.gson.TypeAdapter<Stream<T>>
Serializing
Stream
s of objects in a streaming fashion, which will be useful
for outputting extremely large search results.-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.google.gson.TypeAdapter
fromJson, fromJson, fromJsonTree, nullSafe, toJson, toJson, toJsonTree
-
Constructor Details
-
StreamGsonTypeAdapter
-
-
Method Details
-
read
- Specified by:
read
in classcom.google.gson.TypeAdapter<Stream<T>>
- Throws:
IOException
-
write
- Specified by:
write
in classcom.google.gson.TypeAdapter<Stream<T>>
- Throws:
IOException
-