Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for getContentLengthLong (0.08 sec)

  1. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/smb/SmbClient.java

                            if (logger.isDebugEnabled()) {
                                logger.debug("Parsing SmbFile Content: {}", filePath);
                            }
                            if (file.getContentLengthLong() < maxCachedContentSize) {
                                try (InputStream contentStream = new BufferedInputStream(new SmbFileInputStream(file))) {
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Dec 11 08:38:29 UTC 2025
    - 23.4K bytes
    - Viewed (3)
  2. fess-crawler/src/test/java/org/codelibs/fess/net/protocol/gcs/HandlerTest.java

            } catch (IOException e) {
                // Expected - either "GCS_PROJECT_ID is blank" or connection failure
                assertNotNull(e.getMessage());
            }
        }
    
        /**
         * Test that getContentLengthLong() attempts to connect if not connected.
         */
        public void test_getContentLengthLong_autoConnect() throws Exception {
            URL url = new URL("gcs://mybucket/object.txt");
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Dec 11 08:38:29 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  3. fess-crawler/src/test/java/org/codelibs/fess/net/protocol/storage/HandlerTest.java

            } catch (IOException e) {
                // Expected - either "endpoint is blank" or connection failure
                assertNotNull(e.getMessage());
            }
        }
    
        /**
         * Test that getContentLengthLong() attempts to connect if not connected.
         */
        public void test_getContentLengthLong_autoConnect() throws Exception {
            URL url = new URL("storage://mybucket/object.txt");
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Dec 11 08:38:29 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  4. fess-crawler/src/main/java/org/codelibs/fess/net/protocol/gcs/Handler.java

            /**
             * Gets the content length of the GCS object.
             *
             * @return The content length in bytes, or -1 if unavailable
             */
            @Override
            public long getContentLengthLong() {
                try {
                    if (!connected) {
                        connect();
                    }
                    final Blob blobObj = getBlob();
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Dec 11 08:38:29 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  5. fess-crawler/src/main/java/org/codelibs/fess/net/protocol/s3/Handler.java

            /**
             * Gets the content length of the S3 object.
             *
             * @return The content length in bytes, or -1 if unavailable
             */
            @Override
            public long getContentLengthLong() {
                try {
                    if (!connected) {
                        connect();
                    }
                    return getHeadObject().contentLength();
                } catch (final IOException e) {
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Dec 11 07:57:44 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  6. fess-crawler/src/main/java/org/codelibs/fess/net/protocol/storage/Handler.java

            /**
             * Gets the content length of the storage object.
             *
             * @return The content length in bytes, or -1 if unavailable
             */
            @Override
            public long getContentLengthLong() {
                try {
                    if (!connected) {
                        connect();
                    }
                    return getStatObject().size();
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Nov 20 08:52:56 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/SmbFile.java

            }
            return 0;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see java.net.URLConnection#getContentLengthLong()
         */
        @Override
        public long getContentLengthLong() {
            try {
                return length();
            } catch (final SmbException se) {
                log.debug("getContentLength", se);
            }
            return 0;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 103.2K bytes
    - Viewed (0)
Back to top