Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 206 for inputstream (0.2 sec)

  1. src/main/java/org/codelibs/curl/CurlResponse.java

            }
        }
    
        /**
         * Gets the content of the response as an InputStream.
         *
         * @return the content as an InputStream.
         * @throws IOException if an I/O error occurs.
         * @throws CurlException if the content does not exist.
         */
        public InputStream getContentAsStream() throws IOException {
            if (contentCache == null) {
    Registered: Sat Dec 20 09:13:53 UTC 2025
    - Last Modified: Mon Nov 24 03:10:07 UTC 2025
    - 7K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/smb1/SmbNamedPipe.java

     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     */
    
    package jcifs.smb1.smb1;
    
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.net.MalformedURLException;
    import java.net.URL;
    import java.net.UnknownHostException;
    
    /**
     * This class will allow a Java program to read and write data to Named
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/io/InputStreamUtil.java

                throw new IORuntimeException(e);
            }
        }
    
        /**
         * Resets the {@link InputStream}.
         *
         * @param is the input stream (must not be {@literal null})
         * @see InputStream#reset()
         */
        public static void reset(final InputStream is) {
            assertArgumentNotNull("is", is);
    
            try {
                is.reset();
            } catch (final IOException e) {
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 3K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/io/PropertiesUtil.java

        }
    
        /**
         * Wraps exception handling for {@link Properties#load(InputStream)}.
         * <p>
         * The input stream is not closed.
         * </p>
         *
         * @param props the property set (must not be {@literal null})
         * @param in the input stream (must not be {@literal null})
         */
        public static void load(final Properties props, final InputStream in) {
            assertArgumentNotNull("props", props);
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/suggest/SuggesterResourceLoadingTest.java

            }
        }
    
        /**
         * Test that try-with-resources handles null InputStream correctly.
         * Verifies that null InputStream doesn't cause NullPointerException during close.
         */
        @Test
        public void testTryWithResources_nullInputStreamSafety() {
            // This test demonstrates that try-with-resources handles null safely
            try (InputStream is = null) {
                if (is == null) {
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Mon Nov 24 03:40:05 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  6. fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/ExtractorResourceManagementTest.java

            }
        }
    
        /**
         * Helper method to create a trackable input stream that records when it's closed.
         */
        private InputStream createTrackableInputStream(final InputStream originalStream, final AtomicBoolean closedFlag) {
            return new InputStream() {
                @Override
                public int read() throws IOException {
                    return originalStream.read();
                }
    
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Mon Nov 24 03:59:47 UTC 2025
    - 10.4K bytes
    - Viewed (0)
  7. src/main/java/jcifs/netbios/SessionServicePacket.java

        }
    
        static int readn(final InputStream in, final byte[] b, final int off, final int len) throws IOException {
            int i = 0, n;
    
            while (i < len) {
                n = in.read(b, off + i, len - i);
                if (n <= 0) {
                    break;
                }
                i += n;
            }
    
            return i;
        }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  8. fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/TikaExtractorTest.java

            final InputStream in = ResourceUtil.getResourceAsStream("extractor/program/test.hpp");
            final ExtractData extractData = tikaExtractor.getText(in, null);
            final String content = extractData.getContent();
            CloseableUtil.closeQuietly(in);
            logger.info(content);
            assertTrue(content.contains("ใƒ†ใ‚นใƒˆ"));
        }
    
        public void test_getTika_sh() {
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Aug 07 02:55:08 UTC 2025
    - 30.6K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb1/netbios/SocketInputStreamTest.java

        void availableReturnsUnderlyingWhenNoMessage() throws IOException {
            // Mock input stream that reports available bytes
            InputStream mockIn = mock(InputStream.class);
            when(mockIn.available()).thenReturn(42);
    
            SocketInputStream sis = new SocketInputStream(mockIn);
    
            // When no message is buffered, should return underlying stream's available
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  10. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/ExtractorBuilder.java

     */
    package org.codelibs.fess.crawler.extractor;
    
    import java.io.ByteArrayInputStream;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.IOException;
    import java.io.InputStream;
    import java.nio.file.Files;
    import java.util.Map;
    
    import org.apache.commons.io.output.DeferredFileOutputStream;
    import org.apache.logging.log4j.LogManager;
    import org.apache.logging.log4j.Logger;
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 10.1K bytes
    - Viewed (0)
Back to top