BufferedWriter class methods in Java

java.io.BufferedWriter

Writes text to a character-output stream, buffering characters so as to provide for the efficient writing of single characters, arrays, and strings.


Some methods of BufferedWriter class.


close()This method closes the stream, flushing it first.


flush()This method flushes the stream.


newLine()This method writes a line separator.


write(int)This method writes a single character.


write(char[], int, int)This method writes a portion of an array of characters.


write(String, int, int)This method writes a portion of a String.


No comments:

Post a Comment