@Test public void testAppendUtf8() throws IOException { String text = "Hello"; FileUtils.writeUtf8(file, text); FileUtils.appendUtf8(file, " world"); Assert.assertEquals("Hello world", FileUtils.readUtf8(file)); }
public static void appendUtf8(File file, CharSequence text) throws IOException { writeChars(file, "UTF-8", text, true); }
FileUtils { public static void appendUtf8(File file, CharSequence text) throws IOException { writeChars(file, "UTF-8", text, true); } }
FileUtils { public static void appendUtf8(File file, CharSequence text) throws IOException { writeChars(file, "UTF-8", text, true); }  }
FileUtils { public static void appendUtf8(File file, CharSequence text) throws IOException { writeChars(file, "UTF-8", text, true); }  static byte[] readBytes(File file); static void writeBytes(File file, byte[] content); static String readUtf8(File file); static String readChars(File file, String charset); static void writeUtf8(File file, CharSequence text); static void appendUtf8(File file, CharSequence text); static void writeChars(File file, String charset, CharSequence text, boolean apppend); static void copyFile(File from, File to); static void copyFile(String fromFilename, String toFilename); static Object readObject(File file); static void writeObject(File file, Object object); static String getMd5(File file); static String getSha1(File file); static void updateChecksum(File file, Checksum checksum); static void deleteDirRecursive(File dir); static boolean deleteDirRecursiveBestEffort(File dir); }
FileUtils { public static void appendUtf8(File file, CharSequence text) throws IOException { writeChars(file, "UTF-8", text, true); }  static byte[] readBytes(File file); static void writeBytes(File file, byte[] content); static String readUtf8(File file); static String readChars(File file, String charset); static void writeUtf8(File file, CharSequence text); static void appendUtf8(File file, CharSequence text); static void writeChars(File file, String charset, CharSequence text, boolean apppend); static void copyFile(File from, File to); static void copyFile(String fromFilename, String toFilename); static Object readObject(File file); static void writeObject(File file, Object object); static String getMd5(File file); static String getSha1(File file); static void updateChecksum(File file, Checksum checksum); static void deleteDirRecursive(File dir); static boolean deleteDirRecursiveBestEffort(File dir);  }