You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public final class kotlinx/serialization/json/okio/OkioStreamsKt {
2
-
public static final fun decodeFromSource (Lkotlinx/serialization/json/Json;Lkotlinx/serialization/DeserializationStrategy;Lokio/Source;)Ljava/lang/Object;
3
-
public static final fun decodeSourceToSequence (Lkotlinx/serialization/json/Json;Lokio/Source;Lkotlinx/serialization/DeserializationStrategy;Lkotlinx/serialization/json/DecodeSequenceMode;)Lkotlin/sequences/Sequence;
4
-
public static synthetic fun decodeSourceToSequence$default (Lkotlinx/serialization/json/Json;Lokio/Source;Lkotlinx/serialization/DeserializationStrategy;Lkotlinx/serialization/json/DecodeSequenceMode;ILjava/lang/Object;)Lkotlin/sequences/Sequence;
5
-
public static final fun encodeToSink (Lkotlinx/serialization/json/Json;Lkotlinx/serialization/SerializationStrategy;Ljava/lang/Object;Lokio/Sink;)V
2
+
public static final fun decodeBufferedSourceToSequence (Lkotlinx/serialization/json/Json;Lokio/BufferedSource;Lkotlinx/serialization/DeserializationStrategy;Lkotlinx/serialization/json/DecodeSequenceMode;)Lkotlin/sequences/Sequence;
3
+
public static synthetic fun decodeBufferedSourceToSequence$default (Lkotlinx/serialization/json/Json;Lokio/BufferedSource;Lkotlinx/serialization/DeserializationStrategy;Lkotlinx/serialization/json/DecodeSequenceMode;ILjava/lang/Object;)Lkotlin/sequences/Sequence;
4
+
public static final fun decodeFromBufferedSource (Lkotlinx/serialization/json/Json;Lkotlinx/serialization/DeserializationStrategy;Lokio/BufferedSource;)Ljava/lang/Object;
5
+
public static final fun encodeToBufferedSink (Lkotlinx/serialization/json/Json;Lkotlinx/serialization/SerializationStrategy;Ljava/lang/Object;Lokio/BufferedSink;)V
* Transforms the given [source] into lazily deserialized sequence of elements of type [T] using UTF-8 encoding and deserializer retrieved from the reified type parameter.
120
-
* Unlike [decodeFromSource], [source] is allowed to have more than one element, separated as [format] declares.
121
-
*
122
-
* If [source] is not a [BufferedSource] then called [Source.buffer] for it to create buffered wrapper.
111
+
* Unlike [decodeFromBufferedSource], [source] is allowed to have more than one element, separated as [format] declares.
123
112
*
124
113
* Elements must all be of type [T].
125
114
* Elements are parsed lazily when resulting [Sequence] is evaluated.
126
115
* Resulting sequence is tied to the stream and constrained to be evaluated only once.
127
116
*
128
117
* **Resource caution:** this method does not close [source] when the parsing is finished neither provides method to close it manually.
129
-
* It is a caller responsibility to hold a reference to a stream and close it. Moreover, because stream is parsed lazily,
118
+
* It is a caller responsibility to hold a reference to a source and close it. Moreover, because source is parsed lazily,
130
119
* closing it before returned sequence is evaluated fully would result in [Exception] from decoder.
131
120
*
132
121
* @throws [SerializationException] if the given JSON input cannot be deserialized to the value of type [T].
133
122
* @throws [okio.IOException] If an I/O error occurs and source can't be read from.
0 commit comments