Search Options

Results per page
Sort
Preferred Languages
Advance

Results 751 - 760 of 1,922 for Try (0.03 sec)

  1. src/test/java/org/codelibs/core/io/InputStreamUtilTest.java

        /**
         * @throws Exception
         */
        public void testGetBytes() throws Exception {
            final InputStream is = ResourceUtil.getResourceAsStream(StringUtil.replace(getClass().getName(), ".", "/") + ".class");
            try {
                assertNotNull("1", InputStreamUtil.getBytes(is));
            } finally {
                is.close();
            }
        }
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/taglib/FessFunctions.java

                    @Override
                    public Long load(final String key) throws Exception {
                        try {
                            final Path path = Paths.get(LaServletContextUtil.getServletContext().getRealPath(key));
                            if (Files.isRegularFile(path)) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/http1/Http1ExchangeCodec.kt

        check(
          state == STATE_OPEN_REQUEST_BODY ||
            state == STATE_WRITING_REQUEST_BODY ||
            state == STATE_READ_RESPONSE_HEADERS,
        ) {
          "state: $state"
        }
    
        try {
          val statusLine = StatusLine.parse(headersReader.readLine())
    
          val responseBuilder =
            Response.Builder()
              .protocol(statusLine.protocol)
              .code(statusLine.code)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/crawler/transformer/FessTransformer.java

                    enc = getFessConfig().getCrawlerDocumentSiteEncoding();
                } else {
                    enc = encoding;
                }
    
                try {
                    url = URLDecoder.decode(url, enc);
                } catch (final Exception e) {}
            }
    
            return abbreviateSite(url);
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:11:58 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/StripedTest.java

        for (int i = 0; i < striped.size() * 100; i++) {
          assertTrue(observed.contains(striped.get(new Object())));
        }
    
        try {
          striped.getAt(-1);
          fail();
        } catch (RuntimeException expected) {
        }
    
        try {
          striped.getAt(striped.size());
          fail();
        } catch (RuntimeException expected) {
        }
      }
    
      public void testMaxSize() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jun 26 12:58:35 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/SafeTreeMap.java

        if (comparator == null) {
          comparator = (Comparator<? super K>) NATURAL_ORDER;
        }
        return comparator;
      }
    
      @Override
      public boolean containsKey(Object key) {
        try {
          return delegate.containsKey(checkValid(key));
        } catch (NullPointerException | ClassCastException e) {
          return false;
        }
      }
    
      @Override
      public boolean containsValue(Object value) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/base/EnumsTest.java

      private static ImmutableList<URL> parseJavaClassPath() {
        ImmutableList.Builder<URL> urls = ImmutableList.builder();
        for (String entry : Splitter.on(PATH_SEPARATOR.value()).split(JAVA_CLASS_PATH.value())) {
          try {
            try {
              urls.add(new File(entry).toURI().toURL());
            } catch (SecurityException e) { // File.toURI checks to see if the file is a directory
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed May 29 16:29:37 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/io/ByteSourceTester.java

        InputStream in = source.openStream();
        try {
          byte[] readBytes = ByteStreams.toByteArray(in);
          assertExpectedBytes(readBytes);
        } finally {
          in.close();
        }
      }
    
      public void testOpenBufferedStream() throws IOException {
        InputStream in = source.openBufferedStream();
        try {
          byte[] readBytes = ByteStreams.toByteArray(in);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/StripedTest.java

        for (int i = 0; i < striped.size() * 100; i++) {
          assertTrue(observed.contains(striped.get(new Object())));
        }
    
        try {
          striped.getAt(-1);
          fail();
        } catch (RuntimeException expected) {
        }
    
        try {
          striped.getAt(striped.size());
          fail();
        } catch (RuntimeException expected) {
        }
      }
    
      public void testMaxSize() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jun 26 12:58:35 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  10. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/ApiExtractor.java

                    }
                }
            }
    
            httpClient = closeableHttpClient;
        }
    
        @PreDestroy
        public void destroy() {
            if (httpClient != null) {
                try {
                    httpClient.close();
                } catch (final IOException e) {
                    logger.error("Failed to close httpClient.", e);
                }
            }
        }
    
        @Override
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:47:32 UTC 2024
    - 10K bytes
    - Viewed (0)
Back to top