- Sort Score
- Num 10 results
- Language All
Results 81 - 90 of 183 for Closing (0.05 seconds)
-
guava-tests/test/com/google/common/io/CharSourceTest.java
// TODO(cgdecker): Add CharSource.slice? StringBuilder builder = new StringBuilder(); Reader reader = concatenated.openStream(); // no need to worry about closing for (int i = 0; i < 8; i++) { builder.append((char) reader.read()); } assertEquals(expected, builder.toString()); }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue May 13 17:27:14 GMT 2025 - 11.5K bytes - Click Count (0) -
scripts/translate.py
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 19:05:53 GMT 2025 - 34.1K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbFileInputStreamTest.java
} @Test @DisplayName("read after close throws 'Bad file descriptor'") void readAfterCloseThrows() throws Exception { SmbFileInputStream in = newStream(); // closing should null tmp; subsequent readDirect should fail in.close(); IOException ex = assertThrows(IOException.class, () -> in.readDirect(new byte[8], 0, 4));Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 12.8K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Http2Connection.kt
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Thu Jul 31 04:18:40 GMT 2025 - 31.8K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-UtilJvm.kt
try { close() } catch (e: AssertionError) { throw e } catch (rethrown: RuntimeException) { if (rethrown.message == "bio == null") { // Conscrypt in Android 10 and 11 may throw closing an SSLSocket. This is safe to ignore. // https://issuetracker.google.com/issues/177450597 return } throw rethrown } catch (_: Exception) { } }Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Thu Jul 31 04:18:40 GMT 2025 - 10.2K bytes - Click Count (1) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Http2Writer.kt
* if no streams were processed. * * @param lastGoodStreamId the last stream ID processed, or zero if no streams were processed. * @param errorCode reason for closing the connection. * @param debugData only valid for HTTP/2; opaque debug data to send. */ @Throws(IOException::class) fun goAway( lastGoodStreamId: Int, errorCode: ErrorCode,
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed May 28 23:28:25 GMT 2025 - 11K bytes - Click Count (0) -
src/test/java/jcifs/dcerpc/DcerpcHandleTest.java
} @Test @DisplayName("Should handle close operation") void testClose() throws IOException { // When: Closing handle handle.close(); // Then: Should complete without errors assertDoesNotThrow(() -> handle.close()); } @TestCreated: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 15.3K bytes - Click Count (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/entity/ResponseData.java
} /** * Sets the response body from a file. * * @param responseBody the file containing the response body * @param isTemporary true if the file is temporary and should be deleted when closing */ public void setResponseBody(final File responseBody, final boolean isTemporary) { responseBodyFile = responseBody; isTemporaryFile = isTemporary; } /**Created: Sat Dec 20 11:21:39 GMT 2025 - Last Modified: Sun Jul 06 02:13:03 GMT 2025 - 11.6K bytes - Click Count (0) -
src/test/java/jcifs/smb/DirFileEntryEnumIterator2Test.java
// Consume the only element assertTrue(it.hasNext()); assertSame(fe1, it.next()); // After exception path, iterator should be exhausted assertFalse(it.hasNext()); // Closing should send a single Smb2CloseRequest it.close(); verify(tree).send(argThat((Request<?> r) -> r instanceof Smb2CloseRequest)); } @TestCreated: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 13.7K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/Response.kt
* An HTTP response. Instances of this class are not immutable: the response body is a one-shot * value that may be consumed only once and then closed. All other properties are immutable. * * This class implements [Closeable]. Closing it simply closes its response body. See * [ResponseBody] for an explanation and examples. */ class Response internal constructor( /**
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Mon Jul 28 14:39:28 GMT 2025 - 18.1K bytes - Click Count (0)