- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 16 for newOutputStream (0.33 seconds)
-
src/test/java/org/codelibs/fess/helper/ThemeHelperTest.java
} } // Helper methods to create mock zip files private void createMockThemeZip(Path zipPath) throws IOException { try (ZipOutputStream zos = new ZipOutputStream(Files.newOutputStream(zipPath))) { // Add view file ZipEntry viewEntry = new ZipEntry("view/index.ftl"); zos.putNextEntry(viewEntry); zos.write("<html>test</html>".getBytes());Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Jan 14 14:29:07 GMT 2026 - 14.7K bytes - Click Count (0) -
compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/MavenMetadata.java
private void write(Path metadataPath, Metadata metadata) throws RepositoryException { try { Files.createDirectories(metadataPath.getParent()); try (OutputStream output = Files.newOutputStream(metadataPath)) { new MetadataStaxWriter().write(output, metadata.getDelegate()); } } catch (IOException | XMLStreamException e) {Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Jun 06 14:28:57 GMT 2025 - 4.2K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/app/web/api/admin/badword/ApiAdminBadwordAction.java
final Path tempFile = ComponentUtil.getSystemHelper().createTempFile("fess-badword-", ".csv").toPath(); try { try (Writer writer = new BufferedWriter(new OutputStreamWriter(Files.newOutputStream(tempFile), getCsvEncoding()))) { badWordService.exportCsv(writer); } catch (final Exception e) { logger.warn("Failed to process a request.", e);
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Aug 07 03:06:29 GMT 2025 - 10.3K bytes - Click Count (0) -
compat/maven-compat/src/main/java/org/apache/maven/artifact/repository/metadata/AbstractRepositoryMetadata.java
metadata.setVersion(null); } if (changed || !metadataFile.exists()) { metadataFile.getParentFile().mkdirs(); try (OutputStream output = Files.newOutputStream(metadataFile.toPath())) { MetadataStaxWriter mappingWriter = new MetadataStaxWriter(); mappingWriter.write(output, metadata.getDelegate()); } } else {
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Jun 06 14:28:57 GMT 2025 - 7.2K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/app/web/admin/backup/AdminBackupAction.java
logger.debug("Fess JSON import started: fileName={}", fileName); } try (final InputStream in = new FileInputStream(tempFile); final OutputStream out = Files.newOutputStream(getFessJsonPath())) { CopyUtil.copy(in, out); if (logger.isInfoEnabled()) { logger.info("Fess JSON import completed successfully: fileName={}", fileName); }
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Mon Nov 24 02:07:40 GMT 2025 - 32.1K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/job/IndexExportJob.java
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Mar 26 02:24:08 GMT 2026 - 10.8K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/persistent/PersistentHandleManager.java
return; } Path handleFile = stateDirectory.resolve(info.getCreateGuid().toString() + ".handle"); try (ObjectOutputStream oos = new ObjectOutputStream(Files.newOutputStream(handleFile, StandardOpenOption.CREATE, StandardOpenOption.WRITE, StandardOpenOption.TRUNCATE_EXISTING))) { oos.writeObject(info); log.debug("Persisted handle: {}", info.getPath());Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 24 00:49:49 GMT 2025 - 13K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/app/web/admin/badword/AdminBadwordAction.java
final Path tempFile = ComponentUtil.getSystemHelper().createTempFile("fess-badword-", ".csv").toPath(); try { try (Writer writer = new BufferedWriter(new OutputStreamWriter(Files.newOutputStream(tempFile), getCsvEncoding()))) { badWordService.exportCsv(writer); } catch (final Exception e) { logger.warn("Failed to process a request.", e);
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Jan 23 23:57:26 GMT 2026 - 18K bytes - Click Count (0) -
guava-tests/test/com/google/common/io/ByteSourceTest.java
assertThrows(IOException.class, () -> okSource.copyTo(new TestByteSink(option))); // ensure stream was closed IF it was opened (depends on implementation whether or not it's // opened at all if sink.newOutputStream() throws). assertTrue( "stream not closed when copying to sink with option: " + option, !okSource.wasStreamOpened() || okSource.wasStreamClosed()); } }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 19 18:53:45 GMT 2026 - 15.6K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/app/web/api/admin/elevateword/ApiAdminElevatewordAction.java
final Path tempFile = ComponentUtil.getSystemHelper().createTempFile("fess-elevate-", ".csv").toPath(); try { try (Writer writer = new BufferedWriter(new OutputStreamWriter(Files.newOutputStream(tempFile), getCsvEncoding()))) { elevateWordService.exportCsv(writer); } catch (final Exception e) { logger.warn("Failed to process a request.", e);
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Aug 07 03:06:29 GMT 2025 - 12.8K bytes - Click Count (0)