- Sort Score
- Result 10 results
- Languages All
Results 611 - 620 of 1,808 for try (0.01 sec)
-
guava-tests/test/com/google/common/base/CharMatcherTest.java
private void reallyTestEmpty(CharMatcher matcher) throws Exception { assertEquals(-1, matcher.indexIn("")); assertEquals(-1, matcher.indexIn("", 0)); try { matcher.indexIn("", 1); fail(); } catch (IndexOutOfBoundsException expected) { } try { matcher.indexIn("", -1); fail(); } catch (IndexOutOfBoundsException expected) { } assertEquals(-1, matcher.lastIndexIn(""));
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 30.4K bytes - Viewed (0) -
maven-tests/mvnw.cmd
Rename-Item -Path "$TMP_DOWNLOAD_DIR/$distributionUrlNameMain" -NewName $MAVEN_HOME_NAME | Out-Null try { Move-Item -Path "$TMP_DOWNLOAD_DIR/$MAVEN_HOME_NAME" -Destination $MAVEN_HOME_PARENT | Out-Null } catch { if (! (Test-Path -Path "$MAVEN_HOME" -PathType Container)) { Write-Error "fail to move MAVEN_HOME" } } finally { try { Remove-Item $TMP_DOWNLOAD_DIR -Recurse -Force | Out-Null }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Jul 12 12:05:57 UTC 2025 - 6.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/IoTestCase.java
} return array; } private static void copy(URL url, File file) throws IOException { InputStream in = url.openStream(); try { OutputStream out = new FileOutputStream(file); try { byte[] buf = new byte[4096]; for (int read = in.read(buf); read != -1; read = in.read(buf)) { out.write(buf, 0, read); } } finally {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 5.6K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/ws/RealWebSocket.kt
call!!.enqueue( object : Callback { override fun onResponse( call: Call, response: Response, ) { val socket = try { checkUpgradeSuccess(response) } catch (e: IOException) { failWebSocket(e, response) response.closeQuietly() response.socket?.sink?.closeQuietly()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Jul 31 04:18:40 UTC 2025 - 21.6K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/helper/CrawlingInfoHelper.java
CrawlingInfo crawlingInfo = create ? null : getCrawlingInfoService().getLast(sessionId); if (crawlingInfo == null) { crawlingInfo = new CrawlingInfo(sessionId); try { getCrawlingInfoService().store(crawlingInfo); } catch (final Exception e) { throw new FessSystemException("No crawling session.", e); } }
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Aug 07 03:06:29 UTC 2025 - 15.2K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbOperationException.java
true), RESOURCE_LOCKED("Resource is locked", ErrorCategory.RESOURCE, true), // Transient errors BUSY("Server busy", ErrorCategory.TRANSIENT, true), TRY_AGAIN("Try again later", ErrorCategory.TRANSIENT, true), SERVICE_UNAVAILABLE("Service temporarily unavailable", ErrorCategory.TRANSIENT, true), // Generic errors
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 16.5K bytes - Viewed (0) -
README.md
import jcifs.smb.SmbFile; // Using default context CIFSContext context = SingletonContext.getInstance(); // Access a file (encryption is transparent - automatically used if server requires it) try (SmbFile file = new SmbFile("smb://server/share/file.txt", context)) { if (file.exists()) { System.out.println("File size: " + file.length()); } } ``` ### With Authentication ```java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 09:24:52 UTC 2025 - 6.2K bytes - Viewed (0) -
src/test/java/jcifs/pac/PacTest.java
} @Test void testMockedSuccessfulParsing() throws PACDecodingException, IOException { // Test with mocked PacMac to avoid complex signature calculation try (MockedStatic<PacMac> pacMacMock = mockStatic(PacMac.class)) { // Mock the calculateMac method to return a valid checksum byte[] mockChecksum = new byte[16];
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.9K bytes - Viewed (0) -
src/main/java/jcifs/util/Strings.java
* @return the string as bytes */ public static byte[] getOEMBytes(final String str, final Configuration config) { if (str == null) { return new byte[0]; } try { return str.getBytes(config.getOemEncoding()); } catch (final UnsupportedEncodingException e) { throw new RuntimeCIFSException("Unsupported OEM encoding " + config.getOemEncoding(), e); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 6.5K bytes - Viewed (0) -
src/main/java/jcifs/smb1/ntlmssp/Type1Message.java
DEFAULT_DOMAIN = Config.getProperty("jcifs.smb1.smb.client.domain", null); String defaultWorkstation = null; try { defaultWorkstation = NbtAddress.getLocalHost().getHostName(); } catch (final UnknownHostException ex) {} DEFAULT_WORKSTATION = defaultWorkstation; } /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 7.9K bytes - Viewed (0)