- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for charStream (0.12 sec)
-
okhttp/src/test/java/okhttp3/ResponseBodyJvmTest.kt
val body = body("") assertThat(exhaust(body.charStream())).isEqualTo("") } @Test fun readerLooksLikeBomButTooShort() { val body = body("000048") assertThat(exhaust(body.charStream())).isEqualTo("\u0000\u0000H") } @Test fun readerDefaultsToUtf8() { val body = body("68656c6c6f") assertThat(exhaust(body.charStream())).isEqualTo("hello") } @Test
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon May 13 13:42:37 UTC 2024 - 13K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/ResponseBody.kt
* re-read the bytes of the response. Use this one shot to read the entire response into memory with * [bytes] or [string]. Or stream the response with either [source], [byteStream], or [charStream]. */ abstract class ResponseBody : Closeable { /** Multiple calls to [charStream] must return the same instance. */ private var reader: Reader? = null abstract fun contentType(): MediaType? /**
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 10.7K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt
override fun close() = TODO() } val byteStream = responseBody.byteStream() val source = responseBody.source() val bytes = responseBody.bytes() val charStream = responseBody.charStream() val string = responseBody.string() responseBody.close() responseBody = "".toResponseBody("".toMediaType()) responseBody = "".toResponseBody(null)
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Apr 01 14:21:25 UTC 2024 - 46.5K bytes - Viewed (0) -
okhttp/api/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 Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Apr 15 13:41:01 UTC 2024 - 70.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/CharStreamsTest.java
Reader empty = new StringReader(""); assertEquals(0, CharStreams.exhaust(empty)); assertEquals(-1, empty.read()); } public void testExhaust_readable() throws IOException { CharBuffer buf = CharBuffer.wrap(ASCII); assertEquals(ASCII.length(), CharStreams.exhaust(buf)); assertEquals(0, buf.remaining()); assertEquals(0, CharStreams.exhaust(buf));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 14:28:19 UTC 2024 - 11.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/CharStreamsTest.java
Reader empty = new StringReader(""); assertEquals(0, CharStreams.exhaust(empty)); assertEquals(-1, empty.read()); } public void testExhaust_readable() throws IOException { CharBuffer buf = CharBuffer.wrap(ASCII); assertEquals(ASCII.length(), CharStreams.exhaust(buf)); assertEquals(0, buf.remaining()); assertEquals(0, CharStreams.exhaust(buf));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 14:28:19 UTC 2024 - 11.2K 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 Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 31 14:20:11 UTC 2024 - 25.5K bytes - Viewed (0) -
build-logic/documentation/src/main/groovy/gradlebuild/docs/ReleaseNotesTransformer.java
* See the License for the specific language governing permissions and * limitations under the License. */ package gradlebuild.docs; import com.google.common.io.CharStreams; import org.gradle.api.GradleException; import org.gradle.api.UncheckedIOException; import org.jsoup.Jsoup; import org.jsoup.nodes.Document; import org.jsoup.nodes.DocumentType; import org.jsoup.nodes.Element;
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Thu Oct 03 05:02:20 UTC 2024 - 9.9K bytes - Viewed (0) -
android/guava/src/com/google/common/io/CharSink.java
* this sink */ @CanIgnoreReturnValue public long writeFrom(Readable readable) throws IOException { checkNotNull(readable); try (Writer out = openStream()) { return CharStreams.copy(readable, out); } }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 31 14:20:11 UTC 2024 - 6.8K bytes - Viewed (0) -
android/guava/src/com/google/common/io/CharSequenceReader.java
* but works with any {@link CharSequence}. * * @author Colin Decker */ // TODO(cgdecker): make this public? as a type, or a method in CharStreams? @J2ktIncompatible @GwtIncompatible @ElementTypesAreNonnullByDefault final class CharSequenceReader extends Reader { @CheckForNull private CharSequence seq; private int pos; private int mark;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 4.5K bytes - Viewed (0)