- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for charStream (0.06 sec)
-
docs/recipes.md
[Moshi](https://github.com/square/moshi) is a handy API for converting between JSON and Java objects. Here we're using it to decode a JSON response from a GitHub API. Note that `ResponseBody.charStream()` uses the `Content-Type` response header to select which charset to use when decoding the response body. It defaults to `UTF-8` if no charset is specified. === ":material-language-kotlin: Kotlin" ```kotlin
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Aug 30 17:01:12 UTC 2025 - 47.8K bytes - Viewed (0) -
okhttp/api/jvm/okhttp.api
public fun <init> ()V public final fun byteStream ()Ljava/io/InputStream; public final fun byteString ()Lokio/ByteString; public final fun bytes ()[B public final fun charStream ()Ljava/io/Reader; public fun close ()V public abstract fun contentLength ()J public abstract fun contentType ()Lokhttp3/MediaType;
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Aug 16 09:39:51 UTC 2025 - 69.4K bytes - Viewed (0) -
okhttp/api/android/okhttp.api
public fun <init> ()V public final fun byteStream ()Ljava/io/InputStream; public final fun byteString ()Lokio/ByteString; public final fun bytes ()[B public final fun charStream ()Ljava/io/Reader; public fun close ()V public abstract fun contentLength ()J public abstract fun contentType ()Lokhttp3/MediaType;
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Aug 16 09:39:51 UTC 2025 - 69.4K bytes - Viewed (0) -
guava/src/com/google/common/io/CharStreams.java
* @since 1.0 */ @J2ktIncompatible @GwtIncompatible public final class CharStreams { // 2K chars (4K bytes) private static final int DEFAULT_BUF_SIZE = 0x800; /** Creates a new {@code CharBuffer} for buffering reads or writes. */ static CharBuffer createBuffer() { return CharBuffer.allocate(DEFAULT_BUF_SIZE); } private CharStreams() {} /**
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jul 30 17:25:01 UTC 2025 - 10.9K bytes - Viewed (0) -
android/guava/src/com/google/common/io/CharSource.java
public long copyTo(Appendable appendable) throws IOException { checkNotNull(appendable); Closer closer = Closer.create(); try { Reader reader = closer.register(openStream()); return CharStreams.copy(reader, appendable); } catch (Throwable e) { throw closer.rethrow(e); } finally { closer.close(); } } /** * Copies the contents of this source to the given sink.
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jul 16 17:42:14 UTC 2025 - 25.7K bytes - Viewed (0) -
guava/src/com/google/common/io/CharSource.java
public long copyTo(Appendable appendable) throws IOException { checkNotNull(appendable); Closer closer = Closer.create(); try { Reader reader = closer.register(openStream()); return CharStreams.copy(reader, appendable); } catch (Throwable e) { throw closer.rethrow(e); } finally { closer.close(); } } /** * Copies the contents of this source to the given sink.
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jul 16 17:42:14 UTC 2025 - 25.3K bytes - Viewed (0)