Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for buffer1 (1.28 sec)

  1. src/test/java/org/codelibs/curl/io/ContentCacheTest.java

                byte[] buffer1 = new byte[1024];
                int bytesRead1 = stream1.read(buffer1);
                assertEquals(testContent, new String(buffer1, 0, bytesRead1, "UTF-8"));
            }
    
            // Second read - should work independently
            try (InputStream stream2 = cache.getInputStream()) {
                byte[] buffer2 = new byte[1024];
                int bytesRead2 = stream2.read(buffer2);
    Registered: Sat Dec 20 09:13:53 UTC 2025
    - Last Modified: Thu Nov 20 13:34:13 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/auth/chain/CommandChain.java

            /** Maximum number of lines to buffer. */
            private final int maxLineBuffer;
    
            /**
             * Constructor for InputStreamThread.
             * @param is The input stream to read from.
             * @param charset The character encoding to use.
             * @param maxOutputLineBuffer The maximum number of lines to buffer.
             */
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/io/FileUtil.java

                }
    
                final ByteBuffer buffer = ByteBuffer.allocate((int) fileSize);
                ChannelUtil.read(channel, buffer);
                return buffer.array();
            } finally {
                CloseableUtil.close(is);
            }
        }
    
        /**
         * Reads text from a file using the default encoding.
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat Nov 22 11:21:59 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  4. fess-crawler/src/test/java/org/codelibs/fess/crawler/entity/ResponseDataTest.java

            assertNotNull(data.getResponseBody());
    
            try (InputStream is = data.getResponseBody()) {
                byte[] buffer = new byte[content.length];
                int bytesRead = is.read(buffer);
                assertEquals(content.length, bytesRead);
                assertTrue(Arrays.equals(content, buffer));
            } catch (IOException e) {
                fail("IOException should not occur: " + e.getMessage());
            }
        }
    
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Nov 13 13:29:22 UTC 2025
    - 14.3K bytes
    - Viewed (0)
  5. fess-crawler/src/main/java/org/codelibs/fess/crawler/util/IgnoreCloseInputStream.java

            return inputStream.read(b, off, len);
        }
    
        /**
         * Reads some number of bytes from the input stream and stores them into the buffer array b.
         *
         * @param b the buffer into which the data is read
         * @return the total number of bytes read into the buffer, or -1 if there is no more data
         * @throws IOException if an I/O error occurs
         */
        @Override
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sat Nov 22 13:28:22 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  6. fess-crawler/src/test/java/org/codelibs/fess/crawler/util/ResponseDataUtilTest.java

            assertTrue(tempFile.exists());
    
            // Read and verify content
            try (FileInputStream fis = new FileInputStream(tempFile)) {
                byte[] buffer = new byte[1024];
                int bytesRead = fis.read(buffer);
                String content = new String(buffer, 0, bytesRead);
                assertEquals("Test response body", content);
            } finally {
                // Clean up
                tempFile.delete();
            }
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sat Nov 22 13:28:22 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/curl/CurlResponseTest.java

            try (InputStream stream = response.getContentAsStream()) {
                assertNotNull(stream);
                byte[] buffer = new byte[1024];
                int bytesRead = stream.read(buffer);
                assertEquals(data.length, bytesRead);
                assertArrayEquals(data, Arrays.copyOf(buffer, bytesRead));
            }
        }
    
        @Test
        public void testGetContentAsStreamWithoutCache() {
    Registered: Sat Dec 20 09:13:53 UTC 2025
    - Last Modified: Thu Nov 20 13:34:13 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  8. fess-crawler/src/main/java/org/codelibs/fess/crawler/util/XmlUtil.java

                        fieldName = null;
                    }
                    buffer.setLength(0);
                } else if ("list".equals(qName)) {
                    if (fieldName != null && !dataMap.containsKey(fieldName)) {
                        dataMap.put(fieldName, new ArrayList<>());
                    }
                } else if ("item".equals(qName)) {
                    buffer.setLength(0);
                }
            }
    
            @Override
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sat Nov 22 13:28:22 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  9. fess-crawler/src/test/java/org/codelibs/fess/crawler/util/IgnoreCloseInputStreamTest.java

            IgnoreCloseInputStream stream = new IgnoreCloseInputStream(underlyingStream);
    
            byte[] buffer = new byte[5];
            int bytesRead = stream.read(buffer);
    
            assertEquals(5, bytesRead);
            assertEquals("Hello", new String(buffer));
        }
    
        public void test_readBytesWithOffset_delegatesToUnderlying() throws IOException {
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sat Nov 22 13:28:22 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  10. fess-crawler/src/main/java/org/codelibs/fess/crawler/util/TextUtil.java

     * <ul>
     *   <li>Treating ISO control characters and specified space characters as spaces.</li>
     *   <li>Appending alphanumeric characters (0-9, A-Z, a-z) to the buffer.</li>
     *   <li>Appending symbol characters (!-/, :-@, [-`, {-~) to the buffer.</li>
     *   <li>Optionally removing duplicate terms based on a flag.</li>
     *   <li>Limiting the maximum size of alphanumeric and symbol terms.</li>
     * </ul>
     *
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sat Nov 22 13:28:22 UTC 2025
    - 12K bytes
    - Viewed (0)
Back to top