- Sort Score
- Num 10 results
- Language All
Results 301 - 310 of 1,206 for While (0.02 seconds)
-
okhttp/src/jvmTest/kotlin/okhttp3/internal/http/CancelTest.kt
val response = call.execute() cancelLater(call, 500) val responseBody = response.body.byteStream() val buffer = ByteArray(1024) assertFailsWith<IOException> { while (responseBody.read(buffer) != -1) { } }.also { expected -> assertEquals(cancelMode == INTERRUPT, Thread.interrupted()) } responseBody.close()
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Tue Nov 04 19:13:52 GMT 2025 - 9.4K bytes - Click Count (0) -
src/main/java/jcifs/pac/ASN1Util.java
if (0 == tagNo) { throw new IOException("corrupted stream - invalid high tag number found"); } while ((b & 0x80) != 0) { if (tagNo >>> 24 != 0) { throw new IOException("Tag number more than 31 bits"); } tagNo <<= 7;
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 8.2K bytes - Click Count (0) -
src/test/java/jcifs/smb/PreauthIntegrityTest.java
Field field = findField(target.getClass(), fieldName); field.setAccessible(true); field.set(target, value); } private Field findField(Class<?> clazz, String fieldName) { while (clazz != null) { try { return clazz.getDeclaredField(fieldName); } catch (NoSuchFieldException e) { clazz = clazz.getSuperclass(); } }
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 10.5K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/ws/WebSocketReader.kt
} } /** Read headers and process any control frames until we reach a non-control frame. */ @Throws(IOException::class) private fun readUntilNonControlFrame() { while (!receivedCloseFrame) { readHeader() if (!isControlFrame) { break } readControlFrame() } } /**
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Tue Nov 04 16:11:23 GMT 2025 - 10K bytes - Click Count (0) -
okhttp-sse/src/main/kotlin/okhttp3/sse/internal/RealEventSource.kt
val response = response.stripBody() val reader = ServerSentEventReader(body.source(), this) try { if (!canceled) { listener.onOpen(this, response) while (!canceled && reader.processNextEvent()) { } } } catch (e: Exception) { val exception = when { canceled -> IOException("canceled", e) else -> e
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Fri Oct 03 07:51:20 GMT 2025 - 3.2K bytes - Click Count (0) -
api/maven-api-cli/src/main/java/org/apache/maven/api/cli/Invoker.java
* * <p>The default implementation does nothing. Subclasses should override this method * if they need to perform cleanup operations.</p> * * @throws InvokerException if an error occurs while closing the {@link Invoker} */ @Override default void close() throws InvokerException {}Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Jan 31 20:56:58 GMT 2025 - 2.6K bytes - Click Count (0) -
compat/maven-compat/src/main/java/org/apache/maven/project/artifact/MavenMetadataSource.java
if (artifact.getDependencyTrail() != null && artifact.getDependencyTrail().size() == 1) { logger.warn( "While downloading {}:{}:{}{}", pomArtifact.getGroupId(), pomArtifact.getArtifactId(), pomArtifact.getVersion(),Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Thu Sep 25 12:03:50 GMT 2025 - 30.4K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/TestEnumSetGenerator.java
@Override public AnEnum[] createArray(int length) { return new AnEnum[length]; } /** Sorts the enums according to their natural ordering. */ /* * While the current implementation returns `this`, that's not something we mean to guarantee. * Callers of TestContainerGenerator.order need to be prepared for implementations to return a new * collection. */
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Feb 11 19:03:19 GMT 2025 - 2K bytes - Click Count (0) -
mockwebserver/src/main/kotlin/mockwebserver3/MockResponse.kt
maxChunkSize: Int = Int.MAX_VALUE, ): Builder = apply { removeHeader("Content-Length") headers_.add("Transfer-encoding: chunked") val bytesOut = Buffer() while (!body.exhausted()) { val chunkSize = minOf(body.size, maxChunkSize.toLong()) bytesOut.writeHexadecimalUnsignedLong(chunkSize) bytesOut.writeUtf8("\r\n") bytesOut.write(body, chunkSize)Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Fri Jun 20 11:46:46 GMT 2025 - 17.8K bytes - Click Count (0) -
android/guava/src/com/google/common/escape/UnicodeEscaper.java
* surrogate pairs */ protected int nextEscapeIndex(CharSequence csq, int start, int end) { int index = start; while (index < end) { int cp = codePointAt(csq, index, end); if (cp < 0 || escape(cp) != null) { break; } index += Character.isSupplementaryCodePoint(cp) ? 2 : 1; }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Feb 13 15:45:16 GMT 2025 - 13.2K bytes - Click Count (0)