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
Tag Archives: Java-IO package
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
The write() method of CharArrayWriter class in Java is of three types: The write(int) method of CharArrayWriter class in Java is used to write a… Read More
The append() method of CharArrayWriter class in Java is of three types: The append(char) method of CharArrayWriter class in Java is used to append the… Read More
The unread() method of PushbackReader class in Java is of three types: The unread(int c) method of PushbackReader class in Java is used to push… Read More
The unread() method of PushbackInputStream class in Java is of three types: The unread(int b) method of PushbackInputStream class in Java is used to push… Read More
The read() method of DataInputStream class in Java is of two types: read(byte[] b) method of DataInputStream class in Java is used to read bytes… Read More
The read() method of PushbackInputStream class in Java is of two types: The read() method of PushbackInputStream class in Java is used to read the… Read More
The readBoolean() method of DataInputStream class in Java is used to read one input byte and if the byte read is zero this method returns… Read More
The readByte() method of DataInputStream class in Java is used to read and return one input byte. The byte is a signed value in the… Read More
The readChar() method of DataInputStream class in Java is used to read two input bytes and returns a char value. This method basically reads the… Read More
The readFloat() method of DataInputStream class in Java is used to read four input bytes and returns a float value. This method reads the next… Read More
The readDouble() method of DataInputStream class in Java is used to read eight input bytes and returns a double value. This method reads the next… Read More