Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 273 for inputStream (0.08 sec)

  1. src/main/java/org/codelibs/fess/app/web/api/admin/dict/protwords/ApiAdminDictProtwordsAction.java

                throwValidationErrorApi(messages -> messages.addErrorsFailedToUploadProtwordsFile(GLOBAL));
                return null;
            });
            try (InputStream inputStream = form.protwordsFile.getInputStream()) {
                file.update(inputStream);
            } catch (final IOException e) {
                logger.warn("Failed to process a request.", e);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  2. 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: Thu Sep 04 15:34:10 UTC 2025
    - Last Modified: Sat Jul 05 01:38:18 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/core/io/InputStreamUtilTest.java

     */
    package org.codelibs.core.io;
    
    import java.io.InputStream;
    
    import junit.framework.TestCase;
    
    import org.codelibs.core.lang.StringUtil;
    
    /**
     * @author higa
     *
     */
    public class InputStreamUtilTest extends TestCase {
    
        /**
         * @throws Exception
         */
        public void testGetBytes() throws Exception {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 1.2K bytes
    - Viewed (0)
  4. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/curl/io/ContentCacheTest.java

            // First read
            try (InputStream stream1 = cache.getInputStream()) {
                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()) {
    Registered: Thu Sep 04 15:34:10 UTC 2025
    - Last Modified: Thu Jul 31 01:01:12 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  6. fess-crawler/src/main/java/org/codelibs/fess/crawler/rule/impl/SitemapsRule.java

     * either express or implied. See the License for the specific language
     * governing permissions and limitations under the License.
     */
    package org.codelibs.fess.crawler.rule.impl;
    
    import java.io.InputStream;
    
    import org.apache.logging.log4j.LogManager;
    import org.apache.logging.log4j.Logger;
    import org.codelibs.fess.crawler.entity.ResponseData;
    import org.codelibs.fess.crawler.exception.CrawlingAccessException;
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 2.6K bytes
    - Viewed (0)
  7. api/maven-api-core/src/test/java/org/apache/maven/api/services/SourcesTest.java

            String content = "test content";
            Files.writeString(testFile, content);
    
            Source source = Sources.fromPath(testFile);
            try (InputStream inputStream = source.openStream()) {
                String readContent = new String(inputStream.readAllBytes());
                assertEquals(content, readContent);
            }
        }
    
        @Test
        void testNullHandling() {
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Mar 21 04:56:21 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  8. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/LhaExtractor.java

         * @throws MaxLengthExceededException if the extracted content size exceeds the maximum limit
         */
        @Override
        public ExtractData getText(final InputStream in, final Map<String, String> params) {
            if (in == null) {
                throw new CrawlerSystemException("The inputstream is null.");
            }
    
            final MimeTypeHelper mimeTypeHelper = getMimeTypeHelper();
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  9. fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/HtmlXpathExtractorTest.java

        public void test_getHtml_utf8() {
            final InputStream in = ResourceUtil.getResourceAsStream("extractor/test_utf8.html");
            final String content = htmlXpathExtractor.getText(in, null).getContent();
            CloseableUtil.closeQuietly(in);
            logger.info(content);
            assertTrue(content.contains("ใƒ†ใ‚นใƒˆ"));
        }
    
        public void test_getHtml_sjis() {
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Mar 15 06:52:00 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  10. 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: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 7.9K bytes
    - Viewed (0)
Back to top