Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for InputStreamUtil (0.18 seconds)

  1. src/main/java/org/codelibs/core/io/InputStreamUtil.java

    import org.codelibs.core.exception.IORuntimeException;
    
    /**
     * Utility class for {@link InputStream}.
     *
     * @author higa
     */
    public abstract class InputStreamUtil {
    
        /**
         * Do not instantiate.
         */
        protected InputStreamUtil() {
        }
    
        /** Default buffer size. */
        private static final int BUF_SIZE = 4096;
    
        /**
         * Creates a {@link FileInputStream}.
         *
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 3K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/core/io/InputStreamUtilTest.java

        public void testGetBytes() throws Exception {
            final InputStream is = ResourceUtil.getResourceAsStream(StringUtil.replace(getClass().getName(), ".", "/") + ".class");
            try {
                assertNotNull("1", InputStreamUtil.getBytes(is));
            } finally {
                is.close();
            }
        }
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Sat May 10 01:32:17 GMT 2025
    - 1.2K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/core/io/ResourceTraversalUtil.java

                    final String filePath = FileUtil.getCanonicalPath(file);
                    final String resourcePath = filePath.substring(pos + 1).replace('\\', '/');
                    final InputStream is = InputStreamUtil.create(file);
                    try {
                        handler.processResource(resourcePath, is);
                    } finally {
                        CloseableUtil.close(is);
                    }
                }
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 9.2K bytes
    - Click Count (0)
Back to Top