Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for toByteArray (0.15 sec)

  1. src/main/java/jcifs/spnego/NegTokenInit.java

            }
            return String.format("NegTokenInit[flags=%d,mechs=%s,mic=%s]", this.getContextFlags(), Arrays.toString(this.getMechanisms()), mic);
        }
    
    
        @Override
        public byte[] toByteArray () {
            try {
                ASN1EncodableVector fields = new ASN1EncodableVector();
                ASN1ObjectIdentifier[] mechs = getMechanisms();
                if ( mechs != null ) {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Oct 01 12:01:17 GMT 2023
    - 7.9K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/io/CopyUtilTest.java

        /**
         * @throws Exception
         */
        @Test
        public void testIsToOs() throws Exception {
            final int result = copy(is, os);
            assertThat(result, is(srcBytes.length));
            assertThat(os.toByteArray(), is(srcBytes));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testReaderToWriter() throws Exception {
            final int result = copy(reader, writer);
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/app/web/api/admin/backup/ApiAdminBackupAction.java

                            ComponentUtil.getSystemProperties().store(baos, id);
                            try (final InputStream in = new ByteArrayInputStream(baos.toByteArray())) {
                                out.write(in);
                            }
                        }
                    });
                }
                if (!id.endsWith(NDJSON_EXTENTION)) {
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 6.1K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/io/SerializeUtil.java

                final ObjectOutputStream oos = new ObjectOutputStream(baos);
                try {
                    oos.writeObject(obj);
                } finally {
                    oos.close();
                }
                return baos.toByteArray();
            } catch (final IOException ex) {
                throw new IORuntimeException(ex);
            }
        }
    
        /**
         * {@literal byte}の配列をオブジェクトに変換します。
         *
         * @param bytes
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/helper/DocumentHelper.java

                        gos.write(hash.getBytes(Constants.UTF_8));
                    }
                    return SIMILAR_DOC_HASH_PREFIX + Base64.getUrlEncoder().withoutPadding().encodeToString(baos.toByteArray());
                } catch (final IOException e) {
                    logger.warn("Failed to encode {}", hash, e);
                }
            }
            return hash;
        }
    
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 12K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/timer/MonitorTarget.java

                exception.printStackTrace(writer);
                writer.flush();
                append(buf, "exception", () -> StringEscapeUtils.escapeJson(new String(baos.toByteArray(), Constants.CHARSET_UTF_8)));
            } catch (final IOException e) {
                append(buf, "exception", () -> StringEscapeUtils.escapeJson(e.getMessage()));
            }
            return buf;
        }
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 3K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/app/web/admin/backup/AdminBackupAction.java

                            ComponentUtil.getSystemProperties().store(baos, id);
                            try (final InputStream in = new ByteArrayInputStream(baos.toByteArray())) {
                                out.write(in);
                            }
                        }
                    });
                }
                if (id.endsWith(NDJSON_EXTENTION)) {
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 25.2K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/io/InputStreamUtil.java

            assertArgumentNotNull("is", is);
    
            final ByteArrayOutputStream os = new ByteArrayOutputStream(BUF_SIZE);
            CopyUtil.copy(is, os);
            return os.toByteArray();
        }
    
        /**
         * {@link InputStream#available()}の例外処理をラップしたメソッドです。
         *
         * @param is
         *            入力ストリーム。{@literal null}であってはいけません
         * @return 可能なサイズ
         */
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 3.2K bytes
    - Viewed (0)
Back to top