- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for AsCharSink (0.11 sec)
-
guava/src/com/google/common/io/ByteSink.java
/** * Returns a {@link CharSink} view of this {@code ByteSink} that writes characters to this sink as * bytes encoded with the given {@link Charset charset}. */ public CharSink asCharSink(Charset charset) { return new AsCharSink(charset); } /** * Opens a new {@link OutputStream} for writing to this sink. This method returns a new, * independent stream each time it is called. *
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 28 16:55:09 UTC 2024 - 5K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/MoreFilesTest.java
SourceSinkFactories.pathCharSourceFactory(), false)); suite.addTest( CharSinkTester.tests( "MoreFiles.asCharSink[Path, Charset]", SourceSinkFactories.pathCharSinkFactory())); suite.addTest( CharSinkTester.tests( "MoreFiles.asCharSink[Path, Charset, APPEND]", SourceSinkFactories.appendingPathCharSinkFactory())); suite.addTestSuite(MoreFilesTest.class); return suite;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 02:42:09 UTC 2024 - 27.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/SourceSinkFactories.java
try { writer.write(initialString); } finally { writer.close(); } return Files.asCharSink(file, UTF_8, FileWriteMode.APPEND); } return Files.asCharSink(file, UTF_8); } @Override public String getExpected(String string) { checkNotNull(string);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 17.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/SourceSinkFactories.java
try { writer.write(initialString); } finally { writer.close(); } return Files.asCharSink(file, UTF_8, FileWriteMode.APPEND); } return Files.asCharSink(file, UTF_8); } @Override public String getExpected(String string) { checkNotNull(string);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 12.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/MoreFilesTest.java
try (FileSystem fs = Jimfs.newFileSystem(Configuration.unix())) { Path fooPath = fs.getPath("foo"); Path barPath = fs.getPath("bar"); MoreFiles.asCharSink(fooPath, UTF_8).write("foo"); MoreFiles.asCharSink(barPath, UTF_8).write("barbar"); assertThat(MoreFiles.equal(fooPath, barPath)).isFalse(); assertThat(MoreFiles.equal(fooPath, fooPath)).isTrue();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 31 16:07:00 UTC 2024 - 26.5K bytes - Viewed (0) -
android/guava/src/com/google/common/io/CharSink.java
* doing something and finally closing the writer that was opened. * </ul> * * <p>Any {@link ByteSink} may be viewed as a {@code CharSink} with a specific {@linkplain Charset * character encoding} using {@link ByteSink#asCharSink(Charset)}. Characters written to the * resulting {@code CharSink} will written to the {@code ByteSink} as encoded bytes. * * @since 14.0 * @author Colin Decker */ @J2ktIncompatible @GwtIncompatible
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 31 14:20:11 UTC 2024 - 6.8K bytes - Viewed (0) -
android/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(UTF_8)) // All collections are immutable empty. So safe for any type parameter. .put(Iterator.class, ImmutableSet.of().iterator())
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 20.8K 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(UTF_8)) // All collections are immutable empty. So safe for any type parameter. .put(Iterator.class, ImmutableSet.of().iterator())
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 21.2K bytes - Viewed (0) -
android/guava/src/com/google/common/io/MoreFiles.java
* StandardOpenOption#TRUNCATE_EXISTING TRUNCATE_EXISTING} and {@link StandardOpenOption#WRITE * WRITE} options. */ public static CharSink asCharSink(Path path, Charset charset, OpenOption... options) { return asByteSink(path, options).asCharSink(charset); } /** * Returns an immutable list of paths to the files contained in the given directory. *
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 31 16:07:00 UTC 2024 - 35K bytes - Viewed (0) -
guava/src/com/google/common/io/MoreFiles.java
* StandardOpenOption#TRUNCATE_EXISTING TRUNCATE_EXISTING} and {@link StandardOpenOption#WRITE * WRITE} options. */ public static CharSink asCharSink(Path path, Charset charset, OpenOption... options) { return asByteSink(path, options).asCharSink(charset); } /** * Returns an immutable list of paths to the files contained in the given directory. *
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 31 16:07:00 UTC 2024 - 34.5K bytes - Viewed (0)