public class TextFileWriter extends Object
| Constructor | Description |
|---|---|
TextFileWriter() |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
writeLines(File file,
List<String> lines,
boolean append) |
Write lines(List
|
boolean |
writeLines(File file,
List<String> lines,
String charset,
boolean append) |
Write lines(List
|
boolean |
writeText(File file,
String text,
boolean append) |
Write text to TEXT file as 'UTF-8' text
|
boolean |
writeText(File file,
String text,
String charset,
boolean append) |
Write text to TEXT file
|
boolean |
writeTextToStream(OutputStream os,
String text,
String charset) |
Write text to Stream
|
public boolean writeText(File file, String text, boolean append)
file - lines - append - public boolean writeLines(File file, List<String> lines, boolean append)
file - lines - append - public boolean writeLines(File file, List<String> lines, String charset, boolean append)
file - lines - charset - append - public boolean writeText(File file, String text, String charset, boolean append)
file - text - charset - append - public boolean writeTextToStream(OutputStream os, String text, String charset)
os - text - charset - Copyright © 2018. All rights reserved.