MCPcopy
hub / github.com/google/guava / append

Method append

guava/src/com/google/common/io/Files.java:357–364  ·  view source on GitHub ↗

Appends a character sequence (such as a string) to a file using the given character set. @param from the character sequence to append @param to the destination file @param charset the charset used to encode the output stream; see {@link StandardCharsets} for helpful predefined constants @throws

(CharSequence from, File to, Charset charset)

Source from the content-addressed store, hash-verified

355 * @deprecated Prefer {@code asCharSink(to, charset, FileWriteMode.APPEND).write(from)}.
356 */
357 @Deprecated
358 @InlineMe(
359 replacement = "Files.asCharSink(to, charset, FileWriteMode.APPEND).write(from)",
360 imports = {"com.google.common.io.FileWriteMode", "com.google.common.io.Files"})
361 public
362 static void append(CharSequence from, File to, Charset charset) throws IOException {
363 asCharSink(to, charset, FileWriteMode.APPEND).write(from);
364 }
365
366 /**
367 * Returns true if the given files exist, are not directories, and contain the same bytes.

Callers 15

testAppendStringMethod · 0.95
toStringMethod · 0.45
toStringMethod · 0.45
toStringMethod · 0.45
addMethod · 0.45
writeMethod · 0.45
writeLinesMethod · 0.45
copyToMethod · 0.45
toStringHelperMethod · 0.45
padStartMethod · 0.45
padEndMethod · 0.45
lenientFormatMethod · 0.45

Calls 2

asCharSinkMethod · 0.95
writeMethod · 0.65

Tested by 1

testAppendStringMethod · 0.76