Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for byte (0.01 sec)

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

        protected IDTYPE id;
    
        /** The name of the transformer associated with this access result data. */
        protected String transformerName;
    
        /** The data as a byte array. */
        protected byte[] data;
    
        /** The encoding used for the access result data. */
        protected String encoding;
    
        /**
         * Constructs a new AccessResultDataImpl instance.
         */
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  2. fess-crawler/src/main/java/org/codelibs/fess/crawler/entity/AccessResultData.java

        /**
         * Retrieves the data as a byte array.
         *
         * @return a byte array containing the data.
         */
        byte[] getData();
    
        /**
         * Retrieves the data as a String.
         *
         * @return the data in String format.
         */
        String getDataAsString();
    
        /**
         * Sets the data for this AccessResultData instance.
         *
         * @param data the byte array containing the data to be set
         */
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Mar 15 06:52:00 UTC 2025
    - 2.2K bytes
    - Viewed (10)
  3. fess-crawler/src/test/java/org/codelibs/fess/crawler/entity/ResultDataTest.java

            }
        }
    
        public void test_setSerializer() {
            // ## Arrange ##
            final ResultData resultData = new ResultData();
            final Function<Object, byte[]> serializer = new Function<Object, byte[]>() {
                @Override
                public byte[] apply(Object t) {
                    return t.toString().getBytes();
                }
            };
    
            // ## Act ##
            resultData.setSerializer(serializer);
    
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Mar 15 06:52:00 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  4. fess-crawler/src/main/java/org/codelibs/fess/crawler/entity/ResultData.java

        /**
         * Set the serializer.
         * @param serializer the serializer function to convert raw data to byte array
         */
        public void setSerializer(final Function<Object, byte[]> serializer) {
            this.serializer = serializer;
        }
    
        /**
         * Get the data.
         * @return data
         */
        public byte[] getData() {
            if (data == null) {
                if (serializer == null || rawData == null) {
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  5. fess-crawler/src/main/java/org/codelibs/fess/crawler/util/IgnoreCloseInputStream.java

        }
    
        /**
         * Reads the next byte of data from the input stream.
         *
         * @return the next byte of data, or -1 if the end of the stream is reached
         * @throws IOException if an I/O error occurs
         */
        @Override
        public int read() throws IOException {
            return inputStream.read();
        }
    
        /**
         * Reads up to len bytes of data from the input stream into an array of bytes.
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  6. fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/BinaryTransformer.java

     * stores it as a byte array in the ResultData, and provides a method to retrieve this data
     * as a ByteArrayInputStream.
     * </p>
     *
     * <p>
     * The transform method takes a ResponseData object, checks if it has a response body,
     * and then reads the body into a byte array. This byte array is then set as the data
     * in the ResultData object.
     * </p>
     *
     * <p>
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  7. fess-crawler/src/test/java/org/codelibs/fess/crawler/helper/SitemapsHelperTest.java

            final byte[] bytes = "".getBytes();
            final InputStream in = new ByteArrayInputStream(bytes);
    
            try {
                sitemapsHelper.parse(in);
                fail();
            } catch (final CrawlingAccessException e) {
                // NOP
            }
        }
    
        public void test_parseXmlSitemaps_invalid2() {
            final byte[] bytes = "test".getBytes();
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Mar 15 06:52:00 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  8. fess-crawler/src/test/java/org/codelibs/fess/crawler/transformer/impl/TextTransformerTest.java

        }
    
        public void test_name() {
            assertEquals("textTransformer", textTransformer.getName());
        }
    
        public void test_transform_text() throws Exception {
            final byte[] data = new String("xyz").getBytes();
            final ResponseData responseData = new ResponseData();
            responseData.setUrl("file:/test.txt");
            responseData.setCharSet(Constants.UTF_8);
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Thu Aug 07 02:55:08 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  9. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/AbstractXmlExtractor.java

         * @param bis The buffered input stream.
         * @return The detected encoding.
         */
        protected String getEncoding(final BufferedInputStream bis) {
            final byte[] b = new byte[preloadSizeForCharset];
            try {
                bis.mark(preloadSizeForCharset);
                @SuppressWarnings("resource")
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  10. fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/TextTransformer.java

     * It uses an Extractor to extract the text from the response body based on the MIME type.
     * The extracted text is then converted into a byte array using the specified charset encoding.
     * It also provides a method to retrieve the extracted data as a String from an AccessResultData object.
     *
     * <p>
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 6.5K bytes
    - Viewed (0)
Back to top