Skip to content

Tag Archives: Java-IO package

The readByte() method of the ObjectInputStream class in Java is used to read the 8 bit (byte). Syntax: public byte readByte() Parameters: This method does… Read More
The close() method of BufferedReader class in Java is used to close the stream and release all the system resources associated with the stream operations.… Read More
The ready() method of BufferedReader class in Java is used to verify whether the buffer stream is ready to be read or not. A buffer… Read More
The write() method in BufferedWriter class in Java is used in three ways: 1. The write(int) method of BufferedWriter class in Java is used to… Read More
The skip() method of BufferedReader class in Java is used to skip characters in the stream. The number of characters to be skipped is passed… Read More
The close() method of BufferedWriter class in Java is used to flush the characters from the buffer stream and then close it. Once the stream… Read More
The reset() method of ByteArrayOutputStream class in Java is used to reset the ByteArrayOutputStream and make the count field of this ByteArrayOutputStream to zero. As… Read More
The toByteArray() method of ByteArrayOutputStream class in Java is used to create a newly allocated byte array. The size of the newly allocated byte array… Read More
The readLine() method of BufferedReader class in Java is used to read one line text at a time. The end of a line is to… Read More
The toString() method of ByteArrayOutputStream class in Java is used in two ways: 1. The toString() method of ByteArrayOutputStream class in Java is used convert… Read More
The write() method of ByteArrayOutputStream class in Java is used in two ways: 1. The write(int) method of ByteArrayOutputStream class in Java is used to… Read More
The flush() method of BufferedWriter class in Java is used to flush the characters from the buffered writer stream. Syntax: public void flush() throws IOException… Read More
The read() method of BufferedReader class in Java is of two types: 1. The read() method of BufferedReader class in Java is used to read… Read More
The size() method of ByteArrayOutputStream class in Java is used to obtain the current size of the buffer. This buffer is accumulated inside the ByteArrayOutputStream.… Read More
The read() method of ByteArrayInputStream class in Java is used in two ways: 1. The read() method of ByteArrayInputStream class in Java is used to… Read More

Start Your Coding Journey Now!