- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for asCharSink (0.14 sec)
-
guava/src/com/google/common/io/Files.java
* @throws IOException if an I/O error occurs * @deprecated Prefer {@code asCharSink(to, charset).write(from)}. */ @Deprecated @InlineMe( replacement = "Files.asCharSink(to, charset).write(from)", imports = "com.google.common.io.Files") public static void write(CharSequence from, File to, Charset charset) throws IOException { asCharSink(to, charset).write(from); } /**
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Feb 15 16:12:13 UTC 2024 - 33.1K bytes - Viewed (0) -
android/guava/src/com/google/common/io/Files.java
* @throws IOException if an I/O error occurs * @deprecated Prefer {@code asCharSink(to, charset).write(from)}. */ @Deprecated @InlineMe( replacement = "Files.asCharSink(to, charset).write(from)", imports = "com.google.common.io.Files") public static void write(CharSequence from, File to, Charset charset) throws IOException { asCharSink(to, charset).write(from); } /**
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Feb 15 16:12:13 UTC 2024 - 33.1K bytes - Viewed (0) -
platforms/software/build-init/src/main/java/org/gradle/buildinit/plugins/internal/SimpleTemplateOperation.java
String templateText = Resources.asCharSource(templateURL, CharsetToolkit.getDefaultSystemCharset()).read(); Template template = templateEngine.createTemplate(templateText); try (Writer writer = Files.asCharSink(target, Charsets.UTF_8, FileWriteMode.APPEND).openStream()) { template.make(bindings).writeTo(writer); } } catch (Exception ex) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Sep 18 13:47:19 UTC 2023 - 2.4K bytes - Viewed (0) -
platforms/native/testing-native/src/main/java/org/gradle/nativeplatform/test/xctest/tasks/InstallXCTestBundle.java
} }); copySpec.into(bundleDir); } }); File outputFile = new File(bundleDir, "Contents/Info.plist"); Files.asCharSink(outputFile, Charset.forName("UTF-8")).write("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" + "<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n"
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Nov 16 20:20:03 UTC 2023 - 6.5K bytes - Viewed (0) -
platforms/core-runtime/native/src/main/java/org/gradle/internal/nativeintegration/filesystem/services/GenericFileSystem.java
} private File createFile(String content) throws IOException { File file = temporaryFileProvider.createTemporaryFile("gradle_fs_probing", null); Files.asCharSink(file, Charsets.UTF_8).write(content); return file; } private boolean probeCaseSensitive(File file, String content) { try {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed May 29 06:47:39 UTC 2024 - 6.7K bytes - Viewed (0) -
platforms/extensibility/plugin-development/src/main/java/org/gradle/plugin/devel/tasks/internal/ValidateAction.java
try { //noinspection ResultOfMethodCallIgnored output.createNewFile(); Gson gson = ValidationProblemSerialization.createGsonBuilder().create(); Files.asCharSink(output, Charsets.UTF_8).write(gson.toJson(problemMessages)); } catch (IOException ex) { throw new java.io.UncheckedIOException(ex); } } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 09:10:37 UTC 2024 - 10.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/FilesTest.java
SourceSinkFactories.fileCharSourceFactory(), false)); suite.addTest( CharSinkTester.tests( "Files.asCharSink[File, Charset]", SourceSinkFactories.fileCharSinkFactory())); suite.addTest( CharSinkTester.tests( "Files.asCharSink[File, Charset, APPEND]", SourceSinkFactories.appendingFileCharSinkFactory())); suite.addTestSuite(FilesTest.class); return suite;
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 22.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/FilesTest.java
SourceSinkFactories.fileCharSourceFactory(), false)); suite.addTest( CharSinkTester.tests( "Files.asCharSink[File, Charset]", SourceSinkFactories.fileCharSinkFactory())); suite.addTest( CharSinkTester.tests( "Files.asCharSink[File, Charset, APPEND]", SourceSinkFactories.appendingFileCharSinkFactory())); suite.addTestSuite(FilesTest.class); return suite;
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 22.2K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/internal/operations/trace/BuildOperationTrace.java
Files.asCharSink(file(basePath, "-tree.json"), Charsets.UTF_8).write(prettyJson); } catch (OutOfMemoryError e) { System.err.println("Failed to write build operation trace JSON due to out of memory."); } } private void writeSummaryTree(final List<BuildOperationRecord> roots) throws IOException {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Apr 26 09:45:59 UTC 2024 - 23.4K bytes - Viewed (0) -
guava-testlib/src/com/google/common/testing/ArbitraryInstances.java
.put(ByteSource.class, ByteSource.empty()) .put(CharSource.class, CharSource.empty()) .put(ByteSink.class, NullByteSink.INSTANCE) .put(CharSink.class, NullByteSink.INSTANCE.asCharSink(Charsets.UTF_8)) // All collections are immutable empty. So safe for any type parameter. .put(Iterator.class, ImmutableSet.of().iterator())
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Apr 17 16:33:44 UTC 2024 - 21K bytes - Viewed (0)