Hey Leute,
Wozu braucht man den BufferedWriter wenn man den OutputStreamWriter hat?
Gruß
Wozu braucht man den BufferedWriter wenn man den OutputStreamWriter hat?
Gruß
Writes text to a character-output stream, buffering characters so as to provide for the efficient writing of single characters, arrays, and strings.
BufferedWriter (Java 2 Platform SE v1.4.2)Write text to a character-output stream, buffering characters so as to provide for the efficient writing of single characters, arrays, and strings.
[..]
Without buffering, each invocation of a print() method would cause characters to be converted into bytes that would then be written immediately to the file, which can be very inefficient.