Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 36 of 36 for getContentLength (0.06 sec)

  1. fess-crawler/src/main/java/org/codelibs/fess/crawler/entity/ResponseData.java

            this.charSet = charSet;
        }
    
        /**
         * Gets the content length of the response.
         *
         * @return the content length in bytes
         */
        public long getContentLength() {
            return contentLength;
        }
    
        /**
         * Sets the content length of the response.
         *
         * @param contentLength the content length in bytes
         */
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 11.6K bytes
    - Viewed (0)
  2. mockwebserver/api/mockwebserver3.api

    	public final fun webSocketUpgrade (Lokhttp3/WebSocketListener;)Lmockwebserver3/MockResponse$Builder;
    }
    
    public abstract interface class mockwebserver3/MockResponseBody {
    	public abstract fun getContentLength ()J
    	public abstract fun writeTo (Lokio/BufferedSink;)V
    }
    
    public final class mockwebserver3/MockWebServer : java/io/Closeable {
    	public fun <init> ()V
    	public fun close ()V
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 11.8K bytes
    - Viewed (0)
  3. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/ftp/FtpClient.java

                            final long maxLength = contentLengthHelper.getMaxLength(responseData.getMimeType());
                            if (responseData.getContentLength() > maxLength) {
                                throw new MaxLengthExceededException("The content length (" + responseData.getContentLength()
                                        + " byte) is over " + maxLength + " byte. The url is " + uri);
                            }
                        }
    
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Mon Nov 24 03:59:47 UTC 2025
    - 40K bytes
    - Viewed (0)
  4. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt

          MockResponse()
            .setBody("ab")
            .setSocketPolicy(SocketPolicy.DISCONNECT_DURING_RESPONSE_BODY),
        )
        val connection = server.url("/").toUrl().openConnection()
        assertThat(connection.getContentLength()).isEqualTo(2)
        val inputStream = connection.getInputStream()
        assertThat(inputStream.read()).isEqualTo('a'.code)
        try {
          val byteRead = inputStream.read()
          // OpenJDK behavior: end of stream.
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Thu Jul 03 13:16:34 UTC 2025
    - 22.3K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SmbFile.java

         * @return the length of this file or 0 if it refers to a directory
         */
        @Deprecated
        @Override
        public int getContentLength() {
            try {
                return (int) (length() & 0xFFFFFFFFL);
            } catch (final SmbException se) {
                log.debug("getContentLength", se);
            }
            return 0;
        }
    
        /**
         * {@inheritDoc}
         *
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 103.2K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/smb1/SmbFile.java

         * This URLConnection method just returns the result of {@code length()}.
         *
         * @return the length of this file or 0 if it refers to a directory
         */
    
        @Override
        public int getContentLength() {
            try {
                return (int) (length() & 0xFFFFFFFFL);
            } catch (final SmbException se) {}
            return 0;
        }
    
        /**
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 112.2K bytes
    - Viewed (0)
Back to top