- Sort Score
- Result 10 results
- Languages All
Results 1251 - 1260 of 1,922 for try (0.01 sec)
-
okhttp/src/test/java/okhttp3/internal/http/ThreadInterruptTest.kt
assertFailsWith<IOException> { while (responseBody.read(buffer) != -1) { } } responseBody.close() } private fun sleep(delayMillis: Int) { try { Thread.sleep(delayMillis.toLong()) } catch (e: InterruptedException) { Thread.currentThread().interrupt() } } private fun interruptLater(delayMillis: Int) {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 4.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/CloseablesTest.java
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 4K bytes - Viewed (0) -
android/guava/src/com/google/common/hash/AbstractByteHasher.java
update(b.get()); } } } /** Updates the sink with the given number of bytes from the buffer. */ @CanIgnoreReturnValue private Hasher update(int bytes) { try { update(scratch.array(), 0, bytes); } finally { Java8Compatibility.clear(scratch); } return this; } @Override @CanIgnoreReturnValue public Hasher putByte(byte b) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jun 15 20:59:00 UTC 2022 - 3.5K bytes - Viewed (0) -
android/guava/src/com/google/common/reflect/TypeVisitor.java
for (Type type : types) { if (type == null || !visited.add(type)) { // null owner type, or already visited; continue; } boolean succeeded = false; try { if (type instanceof TypeVariable) { visitTypeVariable((TypeVariable<?>) type); } else if (type instanceof WildcardType) { visitWildcardType((WildcardType) type);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Apr 16 21:10:04 UTC 2021 - 3.7K bytes - Viewed (0) -
src/main/java/org/codelibs/core/lang/ClassLoaderUtil.java
*/ public static Iterator<URL> getResources(final ClassLoader loader, final String name) { assertArgumentNotNull("loader", loader); assertArgumentNotEmpty("name", name); try { final Enumeration<URL> e = loader.getResources(name); return new EnumerationIterator<>(e); } catch (final IOException e) { throw new IORuntimeException(e); } }
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 8.2K bytes - Viewed (0) -
src/main/java/jcifs/ntlmssp/Type2Message.java
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Jul 01 13:12:10 UTC 2018 - 14.4K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/helper/CurlHelper.java
if (StringUtil.isNotBlank(authorities)) { if (logger.isDebugEnabled()) { logger.debug("Loading certificate_authorities: {}", authorities); } try (final InputStream in = new FileInputStream(authorities)) { final Certificate certificate = CertificateFactory.getInstance("X.509").generateCertificate(in);
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 4.8K bytes - Viewed (0) -
okcurl/src/test/kotlin/okhttp3/curl/MainTest.kt
fun fromArgs(vararg args: String): Main { return Main().apply { parse(args.toList()) } } private fun bodyAsString(body: RequestBody?): String { return try { val buffer = Buffer() body!!.writeTo(buffer) buffer.readString(body.contentType()!!.charset()!!) } catch (e: IOException) { throw RuntimeException(e) } } }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 4.3K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/WebPlatformUrlTest.kt
!testData.base!!.startsWith("http:") && testData.base != "about:blank" ) { System.err.println("Ignoring unsupported base ${testData.base}") return } try { testHttpUrl(testData) if (KNOWN_FAILURES.contains(testData.toString())) { System.err.println("Expected failure but was success: $testData") } } catch (e: Throwable) {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 4.7K bytes - Viewed (0) -
src/main/java/jcifs/smb1/netbios/NbtSocket.java
",localport=" + super.getLocalPort() + "]"; } private void connect() throws IOException { byte[] buffer = new byte[BUFFER_SIZE]; int type; InputStream in; try { in = super.getInputStream(); OutputStream out = super.getOutputStream(); SessionServicePacket ssp0 = new SessionRequestPacket( calledName, NbtAddress.localhost.hostName );
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Fri Mar 22 20:39:42 UTC 2019 - 4.8K bytes - Viewed (0)