Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for 4096 (0.02 sec)

  1. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HpackTest.kt

        hpackWriter = Hpack.Writer(4096, false, bytesOut)
      }
    
      /**
       * Variable-length quantity special cases strings which are longer than 127 bytes.  Values such as
       * cookies can be 4KiB, and should be possible to send.
       *
       *  http://tools.ietf.org/html/draft-ietf-httpbis-header-compression-12#section-5.2
       */
      @Test
      fun largeHeaderValue() {
        val value = CharArray(4096)
        Arrays.fill(value, '!')
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 38.6K 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/curl/CurlResponse.java

         *
         * @return the content as a string.
         * @throws CurlException if an error occurs while accessing the content.
         */
        public String getContentAsString() {
            final byte[] bytes = new byte[4096];
            try (BufferedInputStream bis = new BufferedInputStream(getContentAsStream());
                    ByteArrayOutputStream baos = new ByteArrayOutputStream()) {
                int length = bis.read(bytes);
    Registered: Thu Sep 04 15:34:10 UTC 2025
    - Last Modified: Sat Jul 05 01:38:18 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/io/FileUtil.java

         */
        protected FileUtil() {
        }
    
        /** The encoding name for UTF-8. */
        private static final String UTF8 = "UTF-8";
    
        /** Default Buffer Size */
        protected static final int DEFAULT_BUF_SIZE = 4096; // 4k
    
        /** Max Buffer Size */
        protected static final int MAX_BUF_SIZE = 10 * 1024 * 1024; // 10m
    
        /**
         * Returns the canonical path string for this abstract pathname.
         *
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/io/ReaderUtil.java

     */
    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)
  6. src/main/java/org/codelibs/curl/CurlRequest.java

                try (BufferedInputStream bis = new BufferedInputStream(handler.get());
                        ContentOutputStream dfos = new ContentOutputStream(threshold, Curl.tmpDir)) {
                    final byte[] bytes = new byte[4096];
                    int length = bis.read(bytes);
                    while (length != -1) {
                        if (length != 0) {
                            final int len = length;
                            logger.fine(() -> {
    Registered: Thu Sep 04 15:34:10 UTC 2025
    - Last Modified: Sat Jul 05 01:38:18 UTC 2025
    - 17.8K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/helper/SearchHelperTest.java

            public String getCookieSearchParameterKeys() {
                return "q,lang";
            }
    
            @Override
            public Integer getCookieSearchParameterMaxLengthAsInteger() {
                return 4096;
            }
    
            @Override
            public String getCookieSearchParameterName() {
                return "FESS_SEARCH_PARAM";
            }
    
            @Override
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 18.9K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/io/CopyUtil.java

    public abstract class CopyUtil {
    
        /**
         * Do not instantiate.
         */
        protected CopyUtil() {
        }
    
        /** Buffer size used for copying. */
        protected static final int DEFAULT_BUF_SIZE = 4096;
    
        // ////////////////////////////////////////////////////////////////
        // from InputStream to OutputStream
        //
        /**
         * Copies from an input stream to an output stream.
         * <p>
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 45.2K bytes
    - Viewed (0)
  9. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HttpOverHttp2Test.kt

       */
      @ParameterizedTest
      @ArgumentsSource(ProtocolParamProvider::class)
      fun readTimeoutMoreGranularThanBodySize(protocol: Protocol) {
        setUp(protocol)
        val body = CharArray(4096) // 4KiB to read.
        Arrays.fill(body, 'y')
        server.enqueue(
          MockResponse
            .Builder()
            .body(String(body))
            .throttleBody(1024, 1, TimeUnit.SECONDS) // Slow connection 1KiB/second.
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 73.4K bytes
    - Viewed (0)
  10. regression-test/src/androidTest/java/okhttp/regression/compare/AndroidHttpEngineTest.kt

                  info: UrlResponseInfo,
                ) {
                  println("onResponseStarted ${info.headers.asMap} ${info.negotiatedProtocol}")
                  request.read(ByteBuffer.allocateDirect(4096 * 8))
                }
    
                override fun onReadCompleted(
                  request: UrlRequest,
                  info: UrlResponseInfo,
                  byteBuffer: ByteBuffer,
                ) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 6.3K bytes
    - Viewed (0)
Back to top