Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for bufSize (0.04 sec)

  1. guava/src/com/google/common/io/ByteStreams.java

        // reading and so all of the bytes in each new allocated buffer are available for reading from
        // the stream.
        for (int bufSize = initialBufferSize;
            totalLen < MAX_ARRAY_LEN;
            bufSize = IntMath.saturatedMultiply(bufSize, bufSize < 4096 ? 4 : 2)) {
          byte[] buf = new byte[min(bufSize, MAX_ARRAY_LEN - totalLen)];
          bufs.add(buf);
          int off = 0;
          while (off < buf.length) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 31.1K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/io/InputStreamUtil.java

     */
    public abstract class InputStreamUtil {
    
        /**
         * Do not instantiate.
         */
        protected InputStreamUtil() {
        }
    
        /** Default buffer size. */
        private static final int BUF_SIZE = 4096;
    
        /**
         * Creates a {@link FileInputStream}.
         *
         * @param file the file (must not be {@literal null})
         * @return a {@link FileInputStream} to read from the file
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 3K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/io/ReaderUtil.java

     *
     * @author higa
     */
    public abstract class ReaderUtil {
    
        /**
         * Do not instantiate.
         */
        protected ReaderUtil() {
        }
    
        /** Default buffer size */
        private static final int BUF_SIZE = 4096;
    
        /**
         * Creates a {@link Reader} to read from a file with the specified encoding.
         *
         * @param is
         *            the input stream (must not be {@literal null})
         * @param encoding
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 4.3K bytes
    - Viewed (0)
Back to top