Skip to content

Tag Archives: Java-IO package

The newLine() method of BufferedWriter class in Java is used to separate the next line as a new line. It is used as a write… Read More
The flush() method of BufferedOutputStream class in Java is used to flush the buffered output stream. This method is used to compel the bytes of… Read More
The writeTo() method of ByteArrayOutputStream class in Java is used to write the contents of this ByteArrayOutputStream to the specified OutputStream that is passed as… Read More
The close() method of ByteArrayOutputStream class in Java has no effect if other methods of this class are called after closing the ByteArrayOutputStream. This method… 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 BufferedInputStream class in Java is used to mark the current position in the input stream. Reset() method of the same class… Read More
The skip(long) method of BufferedInputStream class in Java is used to skip n bytes of data from the buffered input stream. The number of bytes… Read More
The markSupported() method of BufferedInputStream class in Java is used to verify whether the input stream supports the mark and reset method or not. If… Read More
The close() method of BufferedInputStream class in Java closes the input stream and releases any system resources associated with it. Once the close() method is… Read More
The BufferedInputStream class adds new attributes to other input streams, an ability to buffer the input. When BufferedInputStream is created, an internal buffer array is… Read More
Java System.out.println() is used to print an argument that is passed to it. The statement can be broken into 3 parts which can be understood… Read More
Java brings various Streams with its I/O package that helps the user to perform all the input-output operations. These streams support all the types of… Read More
The available() method of the ObjectInputStream class in Java returns the number of bytes that can be read without blocking the stream. Syntax: public int… Read More
The toString() method of the CharArrayWriter class in Java converts the given input data to a string. Syntax:   public String[] toString() Parameters: This method does… Read More
The close() method of the ObjectInputStream class in Java closes the input stream. Syntax: public void close() Parameters: This method does not accept any parameter.… Read More

Start Your Coding Journey Now!