Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 60 for bytes (2.56 sec)

  1. fess-crawler/src/main/java/org/codelibs/fess/crawler/util/IgnoreCloseInputStream.java

        public synchronized void reset() throws IOException {
            inputStream.reset();
        }
    
        /**
         * Skips over and discards n bytes of data from this input stream.
         *
         * @param n the number of bytes to be skipped
         * @return the actual number of bytes skipped
         * @throws IOException if an I/O error occurs
         */
        @Override
        public long skip(final long n) throws IOException {
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sat Nov 22 13:28:22 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/io/SerializeUtil.java

         */
        public static Object fromBinaryToObject(final byte[] bytes, final ObjectInputFilter filter) {
            assertArgumentNotEmpty("bytes", bytes);
    
            try {
                final ByteArrayInputStream bais = new ByteArrayInputStream(bytes);
                final ObjectInputStream ois = new ObjectInputStream(bais);
                if (filter != null) {
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat Nov 22 11:21:59 UTC 2025
    - 9K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/core/io/FileUtilTest.java

        public TemporaryFolder tempFolder = new TemporaryFolder();
    
        /**
         * @throws Exception
         */
        @Test
        public void testFileToFile() throws Exception {
            final byte[] bytes = readBytes(inputFile);
            assertThat(bytes, is("あいうえお".getBytes("UTF-8")));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testReadUTF8() throws Exception {
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat Nov 22 11:21:59 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/io/FileUtil.java

            }
        }
    
        /**
         * Writes the specified byte array to the file at the given pathname.
         *
         * @param pathname
         *            The path to the file.
         * @param bytes
         *            The byte array to write.
         */
        public static void writeBytes(final String pathname, final byte[] bytes) {
            try (FileOutputStream fos = OutputStreamUtil.create(new File(pathname))) {
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat Nov 22 11:21:59 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/curl/CurlResponse.java

        public String getContentAsString() {
            final byte[] bytes = new byte[4096];
            try (BufferedInputStream bis = new BufferedInputStream(getContentAsStream());
                    ByteArrayOutputStream baos = new ByteArrayOutputStream()) {
                int length = bis.read(bytes);
                while (length != -1) {
                    if (length != 0) {
                        baos.write(bytes, 0, length);
                    }
    Registered: Sat Dec 20 09:13:53 UTC 2025
    - Last Modified: Mon Nov 24 03:10:07 UTC 2025
    - 7K bytes
    - Viewed (0)
  6. fess-crawler/src/main/java/org/codelibs/fess/crawler/util/TemporaryFileInputStream.java

            fileInputStream.reset();
        }
    
        /**
         * Skips over and discards {@code n} bytes of data from this input stream.
         * This method delegates to {@link FileInputStream#skip(long)}.
         *
         * @param n the number of bytes to be skipped
         * @return the actual number of bytes skipped
         * @throws IOException if an I/O error occurs.
         */
        @Override
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sat Nov 22 13:28:22 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/storage/StorageItem.java

         *
         * @param name the name of the item
         * @param path the path of the item
         * @param directory true if this item is a directory
         * @param size the size of the item in bytes
         * @param lastModified the last modified timestamp
         * @param encodedId the base64-encoded ID of the item
         */
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Sat Dec 13 02:21:17 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/curl/CurlRequest.java

                    final byte[] bytes = new byte[4096];
                    int length = bis.read(bytes);
                    while (length != -1) {
                        if (length != 0) {
                            final int len = length;
                            logger.fine(() -> {
                                try {
                                    return "<<< " + new String(bytes, 0, len, encoding);
    Registered: Sat Dec 20 09:13:53 UTC 2025
    - Last Modified: Mon Nov 24 03:10:07 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/storage/StorageClient.java

        /**
         * Uploads an object to storage.
         *
         * @param objectName the name/path for the object
         * @param inputStream the input stream of data to upload
         * @param size the size of the data in bytes
         * @param contentType the MIME type of the content
         */
        void uploadObject(String objectName, InputStream inputStream, long size, String contentType);
    
        /**
         * Downloads an object from storage.
         *
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Sat Dec 13 02:21:17 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  10. 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: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Mon Nov 24 03:59:47 UTC 2025
    - 36.7K bytes
    - Viewed (0)
Back to top