Skip to content

Tag Archives: Java-IO package

Java FileWriter class of java.io package is used to write data in character form to file. This class inherits from OutputStreamWriter class which in turn… Read More
The writer() method of Console class in Java is used to retrieves the unique PrintWriter object which is associated with the console. Syntax: public PrintWriter… Read More
The printf(String, Object) method of Console class in Java is used to write a formatted string to the output stream of the console. It uses… Read More
The reader() method of Console class in Java is used to retrieve the unique Reader object which is associated with the console. This reader() method… Read More
The readLine() method of Console class in Java is of two types: 1. The readLine() method of Console class in Java is used to read… Read More
The flush() method of Console class in Java is used to flush the console and to force any buffered output to be written immediately. Syntax:… Read More
The readPassword() method of Console class in Java is of two types: 1. The readPassword() method of Console class in Java is used to read… Read More
The format(String, Object) method of Console class in Java is used to write a formatted string to the output stream of the console. It uses… Read More
Java IO(Input/Output) is used to perform read and write operations. The java.io package contains all the classes required for input and output operation. Whereas, Java… Read More
The mark() method of BufferedReader class in Java is used to mark the current position in the buffer reader stream. The reset() method of the… Read More
The reset() method of BufferedReader class in Java is used to fix or mark the position at the last marked position so that the same… Read More
The reset() method of BufferedInputStream class in Java is used to reset the position of the stream to the position at the time the mark… Read More
The writeTo(Writer) method of CharArrayWriter class in Java is used to write the contents of the CharArrayWriter to another character stream.Syntax:   public void writeTo(Writer out)… Read More
The markSupported() method of BufferedReader class in Java is used to verify whether the stream supports the mark() method or not. It returns the boolean… Read More
read() method of BufferedInputStream class in Java is used to read the next byte of data from the input stream. When this read() method is… Read More