Category Java

FilterInputStream in Java

Filter streams are streams that wrap around underlying input or output streams and adds new features. In other words, filter streams are streams that filter byte input or output streams for some purpose. For example, the basic byte input stream…

BufferedOutputStream in Java

BufferedOutputStream in Java

A BufferedOutputStream in Java is a concrete subclass of FilterOutputStream class. It wraps (buffers) an output stream into a buffered stream and makes write operations on the stream more efficient and fast. Java BufferedOutputStream adds a buffer to an output…

BufferedInputStream in Java

BufferedInputStream class in Java

A BufferedInputStream in Java is a concrete subclass of FilterInputStream that wraps (buffers) an input stream into a buffered stream and makes read operations on the stream more efficient and fast. In simple words, it adds buffering capabilities to an…

FileOutputStream in Java

Steps to create a text file using FileOutputStream in Java

A FileOutputStream in Java is a concrete subclass of OutputStream that provides methods for writing data to a file or to a FileDescriptor. In simple words, a file output stream is an OutputStream that writes data to a file. It…

FileInputStream in Java

Steps to read data using FileInputStream class in Java

FileInputStream in Java is the most basic file input stream class that is designed to read bytes from a file. In simple words, it reads data from a text file in the form sequence of bytes. That is, it inputs…