Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for getContentAsBytes (0.25 seconds)

  1. src/main/java/org/codelibs/curl/io/ContentCache.java

         *
         * @return the content as a byte array
         * @throws IOException if an I/O error occurs while reading the file
         */
        public byte[] getContentAsBytes() throws IOException {
            if (data != null) {
                return data.clone();
            }
            return Files.readAllBytes(file.toPath());
        }
    
        @Override
    Created: Thu Apr 02 15:34:12 GMT 2026
    - Last Modified: Sat Mar 21 09:11:12 GMT 2026
    - 4.8K bytes
    - Click Count (0)
  2. src/main/java/org/codelibs/curl/CurlResponse.java

                }
                throw new CurlException("Failed to access the content.");
            }
            try {
                return new String(contentCache.getContentAsBytes(), encoding);
            } catch (final Exception e) {
                throw new CurlException("Failed to access the content.", e);
            }
        }
    
        /**
    Created: Thu Apr 02 15:34:12 GMT 2026
    - Last Modified: Sat Mar 21 09:11:12 GMT 2026
    - 6.8K bytes
    - Click Count (0)
Back to Top