Search Options

Results per page
Sort
Preferred Languages
Advance

Results 191 - 200 of 1,808 for try (0.01 sec)

  1. src/main/java/jcifs/util/transport/Transport.java

         */
        @Override
        protected void finalize() throws Throwable {
            try {
                if (!isDisconnected() && this.usageCount.get() != 0) {
                    log.warn("Transport was not properly released, performing emergency cleanup");
                    // Force disconnect to prevent resource leaks
                    try {
                        disconnect(true);
                    } catch (Exception e) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 27.8K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/auth/chain/CommandChain.java

            } finally {
                if (mt != null) {
                    mt.setFinished(true);
                    try {
                        mt.interrupt();
                    } catch (final Exception e) {
                        // ignore
                    }
                }
                if (currentProcess != null) {
                    try {
                        currentProcess.destroy();
                    } catch (final Exception e) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/api/engine/SearchEngineApiManager.java

                    curlRequest.param(entry.getKey(), entry.getValue()[0]);
                }
            });
            try (final CurlResponse curlResponse = curlRequest.onConnect((req, con) -> {
                con.setDoOutput(true);
                if (httpMethod != Method.GET && request.getContentLength() > 2) {
                    try (ServletInputStream in = request.getInputStream(); OutputStream out = con.getOutputStream()) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 12.9K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/dict/stopwords/StopwordsFileTest.java

            // Write test data to file
            try (FileOutputStream fos = new FileOutputStream(testFile)) {
                fos.write(getTestContent().getBytes(StandardCharsets.UTF_8));
            }
    
            // Create a temporary project.properties file for SystemHelper
            File propFile = File.createTempFile("project", ".properties");
            propFile.deleteOnExit();
            try (FileOutputStream fos = new FileOutputStream(propFile)) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/suggest/settings/ArraySettings.java

         */
        protected void createMappingIfEmpty(final String index, final String type, final Client client) {
            final String actualIndex = index + "." + type.toLowerCase(Locale.ENGLISH);
            try {
                boolean empty;
                try {
                    empty = client.admin()
                            .indices()
                            .prepareGetMappings(actualIndex)
                            .execute()
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Thu Aug 07 02:41:28 UTC 2025
    - 15.6K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/exec/ThumbnailGenerator.java

         */
        public static void main(final String[] args) {
            final Options options = new Options();
    
            final CmdLineParser parser = new CmdLineParser(options);
            try {
                parser.parseArgument(args);
            } catch (final CmdLineException e) {
                System.err.println(e.getMessage());
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/curl/CurlResponseTest.java

            assertEquals(testContent, content);
        }
    
        @Test
        public void testGetContentAsStringWithoutCache() {
            CurlResponse response = new CurlResponse();
    
            try {
                response.getContentAsString();
                fail("Expected CurlException");
            } catch (CurlException e) {
                assertTrue(e.getMessage().contains("Failed to access the content"));
            }
    Registered: Thu Sep 04 15:34:10 UTC 2025
    - Last Modified: Thu Jul 31 01:01:12 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/helper/SystemHelperTest.java

        }
    
        public void test_getHostnamet() {
            assertNotNull(systemHelper.getHostname());
            try {
                envMap.put("COMPUTERNAME", "xxx");
                assertEquals("xxx", systemHelper.getHostname());
            } finally {
                envMap.remove("COMPUTERNAME");
            }
            try {
                envMap.put("HOSTNAME", "yyy");
                assertEquals("yyy", systemHelper.getHostname());
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 28.9K bytes
    - Viewed (0)
  9. src/main/java/jcifs/util/SecureKeyManager.java

         */
        public SecretKey getSessionKey(String sessionId) {
            checkNotClosed();
    
            SecretKey key = sessionKeys.get(sessionId);
    
            // Try to load from KeyStore if not in memory
            if (key == null && keyStore != null) {
                try {
                    KeyStore.ProtectionParameter protection = new KeyStore.PasswordProtection(keyStorePassword);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 21.5K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/helper/DocumentHelper.java

         */
        public String encodeSimilarDocHash(final String hash) {
            if (hash != null && !hash.startsWith(SIMILAR_DOC_HASH_PREFIX)) {
                try (ByteArrayOutputStream baos = new ByteArrayOutputStream()) {
                    try (GZIPOutputStream gos = new GZIPOutputStream(baos)) {
                        gos.write(hash.getBytes(Constants.UTF_8));
                    }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 17.2K bytes
    - Viewed (0)
Back to top