Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 130 for IOException (0.04 sec)

  1. src/test/java/org/codelibs/curl/CurlResponseTest.java

                assertSame(exception, e.getCause());
            } catch (IOException e) {
                fail("Should throw CurlException, not IOException");
            }
        }
    
        @Test
        public void testGetContentWithParser() throws IOException {
            CurlResponse response = new CurlResponse();
            response.setEncoding("UTF-8");
            String testContent = "42";
    Registered: Sat Dec 20 09:13:53 UTC 2025
    - Last Modified: Thu Nov 20 13:34:13 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/curl/io/ContentOutputStreamTest.java

    import static org.junit.Assert.assertNotNull;
    import static org.junit.Assert.assertTrue;
    
    import java.io.File;
    import java.io.IOException;
    
    import org.codelibs.curl.Curl;
    import org.junit.Test;
    
    public class ContentOutputStreamTest {
    
        @Test
        public void inMemory() throws IOException {
            ContentOutputStream cos = new ContentOutputStream(10, Curl.tmpDir);
            cos.write(new byte[] { 0, 1, 2, 3, 4 });
    Registered: Sat Dec 20 09:13:53 UTC 2025
    - Last Modified: Wed Nov 12 14:01:04 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  3. fess-crawler/src/test/java/org/codelibs/fess/net/protocol/gcs/HandlerTest.java

                conn.connect();
                fail("Should throw IOException");
            } catch (IOException e) {
                assertTrue(e.getMessage().contains("GCS_PROJECT_ID is blank"));
            }
    
            // Second call should also fail with the same error
            try {
                conn.connect();
                fail("Should throw IOException");
            } catch (IOException e) {
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Dec 11 08:38:29 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  4. fess-crawler/src/main/java/org/codelibs/fess/crawler/util/IgnoreCloseInputStream.java

         *
         * @throws IOException if an I/O error occurs (not thrown in this implementation)
         */
        @Override
        public void close() throws IOException {
            // inputStream.close();
        }
    
        /**
         * Returns the number of bytes that can be read from this input stream without blocking.
         *
         * @return the number of bytes available
         * @throws IOException if an I/O error occurs
         */
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sat Nov 22 13:28:22 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/curl/io/ContentCacheTest.java

            // Should throw IOException when file doesn't exist
            try {
                cache.close();
                fail("Expected IOException for non-existent file");
            } catch (IOException e) {
                // Expected - file doesn't exist
            }
        }
    
        @Test
        public void testMemoryCacheWithBinaryData() throws IOException {
            // Test with binary data containing all byte values
    Registered: Sat Dec 20 09:13:53 UTC 2025
    - Last Modified: Thu Nov 20 13:34:13 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/reflect/ClassPathTest.java

      }
    
      public void testGetClassPathFromManifest_noClassPath() throws IOException {
        File jarFile = new File("base.jar");
        assertThat(ClassPath.getClassPathFromManifest(jarFile, manifest(""))).isEmpty();
      }
    
      public void testGetClassPathFromManifest_emptyClassPath() throws IOException {
        File jarFile = new File("base.jar");
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 21:00:51 UTC 2025
    - 25.7K bytes
    - Viewed (0)
  7. fess-crawler/src/main/java/org/codelibs/fess/net/protocol/s3/Handler.java

         *
         * @param u The URL to open a connection to
         * @return A new S3URLConnection instance
         * @throws IOException If the connection cannot be opened
         */
        @Override
        protected URLConnection openConnection(final URL u) throws IOException {
            return new S3URLConnection(u);
        }
    
        /**
         * S3URLConnection is a URL connection implementation for accessing S3 objects.
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Dec 11 07:57:44 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/dict/mapping/CharMappingFile.java

         *
         * @param in the input stream containing the new mapping file content
         * @throws IOException if an I/O error occurs during the update
         */
        public synchronized void update(final InputStream in) throws IOException {
            try (MappingUpdater updater = new MappingUpdater(null)) {
                reload(updater, in);
            }
        }
    
        /**
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Sat Dec 20 05:56:45 UTC 2025
    - 15.3K bytes
    - Viewed (0)
  9. fess-crawler/src/main/java/org/codelibs/fess/net/protocol/storage/Handler.java

         *
         * @param u The URL to open a connection to
         * @return A new StorageURLConnection instance
         * @throws IOException If the connection cannot be opened
         */
        @Override
        protected URLConnection openConnection(final URL u) throws IOException {
            return new StorageURLConnection(u);
        }
    
        /**
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Nov 20 08:52:56 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  10. fess-crawler/src/main/java/org/codelibs/fess/net/protocol/gcs/Handler.java

                if (!connected) {
                    connect();
                }
                try {
                    final Blob blobObj = getBlob();
                    if (blobObj == null) {
                        throw new IOException("Object not found: bucket=" + bucketName + ", object=" + objectName);
                    }
                    return Channels.newInputStream(blobObj.reader());
                } catch (final IOException e) {
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Dec 11 08:38:29 UTC 2025
    - 9.6K bytes
    - Viewed (0)
Back to top