- Sort Score
- Num 10 results
- Language All
Results 1 - 5 of 5 for asByteSink (0.2 seconds)
-
android/guava/src/com/google/common/io/Files.java
* truncated before writing. When the {@link FileWriteMode#APPEND APPEND} mode is provided, writes * will append to the end of the file without truncating it. * * @since 14.0 */ public static ByteSink asByteSink(File file, FileWriteMode... modes) { return new FileByteSink(file, modes); } private static final class FileByteSink extends ByteSink { private final File file;Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Jan 05 22:13:21 GMT 2026 - 32.8K bytes - Click Count (0) -
android/guava/src/com/google/common/io/MoreFiles.java
* StandardOpenOption#TRUNCATE_EXISTING TRUNCATE_EXISTING} and {@link StandardOpenOption#WRITE * WRITE} options. */ public static ByteSink asByteSink(Path path, OpenOption... options) { return new PathByteSink(path, options); } @IgnoreJRERequirement // *should* be redundant with the one on MoreFiles itselfCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Apr 14 16:07:06 GMT 2025 - 34.6K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/io/SourceSinkFactories.java
try { out.write(initialBytes); } finally { out.close(); } return Files.asByteSink(file, FileWriteMode.APPEND); } return Files.asByteSink(file); } @Override public byte[] getExpected(byte[] bytes) { if (initialBytes == null) { return checkNotNull(bytes); } else {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Jul 16 17:42:14 GMT 2025 - 12.7K bytes - Click Count (0) -
guava-tests/test/com/google/common/io/MoreFilesTest.java
suite.addTest( ByteSinkTester.tests( "MoreFiles.asByteSink[Path]", SourceSinkFactories.pathByteSinkFactory())); suite.addTest( ByteSinkTester.tests( "MoreFiles.asByteSink[Path, APPEND]", SourceSinkFactories.appendingPathByteSinkFactory())); suite.addTest( CharSourceTester.tests(
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 19:26:39 GMT 2026 - 27.5K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/io/FilesTest.java
"Files.asByteSource[File]", SourceSinkFactories.fileByteSourceFactory(), true)); suite.addTest( ByteSinkTester.tests("Files.asByteSink[File]", SourceSinkFactories.fileByteSinkFactory())); suite.addTest( ByteSinkTester.tests( "Files.asByteSink[File, APPEND]", SourceSinkFactories.appendingFileByteSinkFactory())); suite.addTest( CharSourceTester.tests(
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 19 18:53:45 GMT 2026 - 22.8K bytes - Click Count (0)