Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 79 for ByteArrayOutputStream (0.07 sec)

  1. src/main/java/org/codelibs/fess/app/web/admin/backup/AdminBackupAction.java

                if ("system.properties".equals(id)) {
                    return asStream(id).contentTypeOctetStream().stream(out -> {
                        try (final ByteArrayOutputStream baos = new ByteArrayOutputStream()) {
                            ComponentUtil.getSystemProperties().store(baos, id);
                            try (final InputStream in = new ByteArrayInputStream(baos.toByteArray())) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 29.8K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbOperationExceptionTest.java

                    new RuntimeException("cause"), SmbOperationException.RetryPolicy.AGGRESSIVE, context);
    
            // When - Serialize
            java.io.ByteArrayOutputStream baos = new java.io.ByteArrayOutputStream();
            java.io.ObjectOutputStream oos = new java.io.ObjectOutputStream(baos);
            oos.writeObject(exception);
            oos.close();
    
            // And deserialize
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 16.1K bytes
    - Viewed (0)
  3. fess-crawler/src/test/java/org/codelibs/fess/crawler/CrawlerStatusTest.java

            // Test each enum value
            CrawlerStatus[] statuses = CrawlerStatus.values();
    
            for (CrawlerStatus original : statuses) {
                // Serialize
                ByteArrayOutputStream baos = new ByteArrayOutputStream();
                ObjectOutputStream oos = new ObjectOutputStream(baos);
                oos.writeObject(original);
                oos.close();
    
                // Deserialize
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Wed Sep 03 14:42:53 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/exec/CrawlerTest.java

            }
        }
    
        // Test main method with invalid arguments
        public void test_main_withInvalidArguments() {
            ByteArrayOutputStream errContent = new ByteArrayOutputStream();
            PrintStream originalErr = System.err;
            System.setErr(new PrintStream(errContent));
    
            try {
                String[] args = { "--invalidOption", "value" };
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 30.5K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/helper/SearchHelper.java

         * @return GZIP-compressed data
         * @throws IORuntimeException if compression fails
         */
        protected byte[] gzipCompress(final byte[] data) {
            try (final ByteArrayOutputStream bos = new ByteArrayOutputStream()) {
                try (final GZIPOutputStream gzipOut = new GZIPOutputStream(bos)) {
                    gzipOut.write(data);
                }
                return bos.toByteArray();
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 35.8K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/io/SourceSinkFactories.java

          }
        }
    
        @Override
        public byte[] getSinkContents() throws IOException {
          File file = getFile();
          InputStream in = new FileInputStream(file);
          ByteArrayOutputStream out = new ByteArrayOutputStream();
          byte[] buffer = new byte[100];
          int read;
          while ((read = in.read(buffer)) != -1) {
            out.write(buffer, 0, read);
          }
          return out.toByteArray();
        }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 17.9K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb2/multichannel/ChannelManager.java

            return localInterfaces.size() > 0 && remoteInterfaces.size() > 0;
        }
    
        private byte[] calculateBindingInfo(ChannelInfo channel) {
            ByteArrayOutputStream baos = new ByteArrayOutputStream();
    
            try {
                // Combine session key with channel-specific data
                byte[] sessionKey = getSessionKey();
                if (sessionKey != null) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 20K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SpnegoContext.java

         * @return
         * @throws CIFSException
         */
        private static byte[] encodeMechs(final ASN1ObjectIdentifier[] mechs) throws CIFSException {
            try {
                final ByteArrayOutputStream bos = new ByteArrayOutputStream();
                final ASN1OutputStream dos = ASN1OutputStream.create(bos, ASN1Encoding.DER);
                dos.writeObject(new DERSequence(mechs));
                dos.close();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 14.5K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/helper/DocumentHelper.java

         */
        public String encodeSimilarDocHash(final String hash) {
            if (hash != null && !hash.startsWith(SIMILAR_DOC_HASH_PREFIX)) {
                try (ByteArrayOutputStream baos = new ByteArrayOutputStream()) {
                    try (GZIPOutputStream gos = new GZIPOutputStream(baos)) {
                        gos.write(hash.getBytes(Constants.UTF_8));
                    }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 17.2K bytes
    - Viewed (0)
  10. src/test/java/jcifs/http/NetworkExplorerTest.java

        private PrintWriter printWriter;
        private ByteArrayOutputStream outputStream;
        private ServletOutputStream servletOutputStream;
    
        @BeforeEach
        void setUp() throws Exception {
            // Setup response writers
            stringWriter = new StringWriter();
            printWriter = new PrintWriter(stringWriter);
            outputStream = new ByteArrayOutputStream();
    
            servletOutputStream = new ServletOutputStream() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 21.2K bytes
    - Viewed (0)
Back to top