1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
| package javautility;
import java.io.File;
import java.io.IOException;
import java.nio.charset.Charset;
import java.util.Collection;
import org.apache.commons.io.FileUtils;
public class FileWrite {
public static void writeStringToFile(String file, String data, Charset encoding) throws IOException {
FileUtils.writeStringToFile( new File(file), data, encoding);
}
public static void writeStringToFile(String file, String data, String encoding) throws IOException {
FileUtils.writeStringToFile( new File(file), data, encoding);
}
public static void writeStringToFile(String file, String data, Charset encoding, boolean append) throws IOException {
FileUtils.writeStringToFile( new File(file), data, encoding, append);
}
public static void writeStringToFile(String file, String data, String encoding, boolean append) throws IOException {
FileUtils.writeStringToFile( new File(file), data, encoding, append);
}
public static void write(String file, CharSequence data, Charset encoding) throws IOException {
FileUtils.write( new File(file), data, encoding);
}
public static void write(String file, CharSequence data, String encoding) throws IOException {
FileUtils.write( new File(file), data, encoding);
}
public static void write(String file, CharSequence data, Charset encoding, boolean append) throws IOException {
FileUtils.write( new File(file), data, encoding, append);
}
public static void write(String file, CharSequence data, String encoding, boolean append) throws IOException {
FileUtils.write( new File(file), data, encoding, append);
}
public static void writeByteArrayToFile(String file, byte[] data) throws IOException {
FileUtils.writeByteArrayToFile( new File(file), data);
}
public static void writeByteArrayToFile(String file, byte[] data, boolean append) throws IOException {
FileUtils.writeByteArrayToFile( new File(file), data, append);
}
public static void writeByteArrayToFile(String file, byte[] data, int off, int len) throws IOException {
FileUtils.writeByteArrayToFile( new File(file), data, off, len);
}
public static void writeByteArrayToFile(String file, byte[] data, int off, int len, boolean append) throws IOException {
FileUtils.writeByteArrayToFile( new File(file), data, off, len, append);
}
public static void writeLines(String file, String encoding, Collection<?> lines) throws IOException {
FileUtils.writeLines( new File(file), encoding, lines);
}
public static void writeLines(String file, String encoding, Collection<?> lines, boolean append) throws IOException {
FileUtils.writeLines( new File(file), encoding, lines, append);
}
public static void writeLines(String file, Collection<?> lines) throws IOException {
FileUtils.writeLines( new File(file), lines);
}
public static void writeLines(String file, Collection<?> lines, boolean append) throws IOException {
FileUtils.writeLines( new File(file), lines, append);
}
public static void writeLines(String file, String encoding, Collection<?> lines, String lineEnding) throws IOException {
FileUtils.writeLines( new File(file), encoding, lines, lineEnding);
}
public static void writeLines(String file, String encoding, Collection<?> lines, String lineEnding, boolean append) throws IOException {
FileUtils.writeLines( new File(file), encoding, lines, lineEnding, append);
}
public static void writeLines(String file, Collection<?> lines, String lineEnding) throws IOException {
FileUtils.writeLines( new File(file), lines, lineEnding );
}
public static void writeLines(String file, Collection<?> lines, String lineEnding, boolean append) throws IOException {
FileUtils.writeLines( new File(file), lines, lineEnding, append);
}
}
|