Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 31 for Flush (0.06 sec)

  1. src/test/java/org/codelibs/curl/io/ContentOutputStreamTest.java

            // flush() should work with in-memory data
            ContentOutputStream cos = new ContentOutputStream(10, Curl.tmpDir);
            cos.write(new byte[] { 0, 1, 2 });
            cos.flush();
            assertTrue(cos.isInMemory());
            cos.close();
        }
    
        @Test
        public void testFlushInFile() throws IOException {
            // flush() should work with file-based data
    Registered: Sat Dec 20 09:13:53 UTC 2025
    - Last Modified: Wed Nov 12 14:01:04 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  2. apache-maven/src/assembly/maven/bin/JvmConfigParser.java

                    } catch (IOException e) {
                        System.err.println("ERROR: Failed to write output file: " + e.getMessage());
                        System.err.flush();
                        System.exit(1);
                    }
                }
                return;
            }
    
            try {
                String result = parseJvmConfig(jvmConfigPath, mavenProjectBasedir);
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Dec 10 16:40:06 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  3. src/archive/tar/writer_test.go

    		}
    		if _, err := tw.Write([]byte("Kilts")); err != ErrWriteAfterClose {
    			t.Fatalf("Write() = %v, want %v", err, ErrWriteAfterClose)
    		}
    		if err := tw.Flush(); err != ErrWriteAfterClose {
    			t.Fatalf("Flush() = %v, want %v", err, ErrWriteAfterClose)
    		}
    		if err := tw.Close(); err != nil {
    			t.Fatalf("Close() = %v, want nil", err)
    		}
    	})
    
    	t.Run("PrematureFlush", func(t *testing.T) {
    Registered: Tue Dec 30 11:13:12 UTC 2025
    - Last Modified: Mon Dec 15 16:34:13 UTC 2025
    - 40.2K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/curl/CurlRequest.java

                            writer.flush();
                        }
                    } else if (bodyStream != null) {
                        logger.fine(() -> ">>> <binary>");
                        connection.setDoOutput(true);
                        try (final OutputStream out = connection.getOutputStream()) {
                            IOUtils.copy(bodyStream, out);
                            out.flush();
                        }
                    }
    Registered: Sat Dec 20 09:13:53 UTC 2025
    - Last Modified: Mon Nov 24 03:10:07 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/app/web/admin/backup/AdminBackupAction.java

                            } else {
                                bw.write(line);
                            }
                        }
                        bw.write("\n");
                    }
                    bw.flush();
                } catch (IOException e) {
                    throw new IORuntimeException(e);
                }
            }).execute()) {
                if (logger.isDebugEnabled()) {
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Mon Nov 24 02:07:40 UTC 2025
    - 32.1K bytes
    - Viewed (0)
  6. src/cmd/asm/internal/asm/endtoend_test.go

    	pList := new(obj.Plist)
    	var ok bool
    	testOut = new(strings.Builder) // The assembler writes test output to this buffer.
    	ctxt.Bso = bufio.NewWriter(os.Stdout)
    	ctxt.IsAsm = true
    	defer ctxt.Bso.Flush()
    	failed := false
    	ctxt.DiagFunc = func(format string, args ...any) {
    		failed = true
    		t.Errorf(format, args...)
    	}
    	pList.Firstpc, ok = parser.Parse()
    	if !ok || failed {
    Registered: Tue Dec 30 11:13:12 UTC 2025
    - Last Modified: Tue Dec 23 18:45:48 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/opensearch/client/SearchEngineClient.java

                if (response.getHttpStatusCode() == 200) {
                    logger.info("Flushed config files.");
                } else {
                    logger.warn("Failed to flush config files.");
                }
            } catch (final Exception e) {
                logger.warn("Failed to flush config files.", e);
            }
        }
    
        /**
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 122.4K bytes
    - Viewed (1)
  8. src/main/java/org/codelibs/fess/crawler/serializer/DataSerializer.java

            final Kryo kryo = kryoThreadLocal.get();
            try (ByteArrayOutputStream baos = new ByteArrayOutputStream(); final Output output = new Output(baos)) {
                kryo.writeClassAndObject(output, obj);
                output.flush();
                return baos.toByteArray();
            } catch (final IOException e) {
                throw new IORuntimeException(e);
            }
        }
    
        /**
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Wed Nov 19 07:09:17 UTC 2025
    - 6.5K bytes
    - Viewed (3)
  9. src/main/java/org/codelibs/fess/app/service/BadWordService.java

                            list.add(StringUtil.EMPTY);
                        } else {
                            list.add(value.toString());
                        }
                    }
                });
    
                csvWriter.flush();
            } catch (final IOException e) {
                logger.warn("Failed to write a suggest bad word.", e);
            }
        }
    
        private static String getValue(final List<String> list, final int index) {
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/thumbnail/impl/HtmlTagBasedGenerator.java

                                    thumbnailWidth, thumbnailHeight, null);
                    ImageIO.write(thumbnail, fessConfig.getThumbnailHtmlImageFormat(), outputFile);
                    image.flush();
                    return Result.OK;
                } finally {
                    reader.dispose();
                }
            }
            return Result.FAILED;
        }
    
        /**
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 10.5K bytes
    - Viewed (0)
Back to top