BufferedOutputStream increase the writing performance of the other OutputStream objects. BufferedOutputStream internally contains a buffered byte array which stores the bytes to write in to the file. Unlike the BufferedOutputStream the other OutputStream 's takes write byte by byte in to the file. Firstly they have to fetch from the resource and then they will write in to the file. But BufferedOutputStream take less time to write in to file since it has a buffer it will fetch all the bytes to the buffer and then it will perform write operation at once.
public class BufferedOutputStream
BufferedOutputStreamDemo CODE import java.io.*; OUTPUT File exists. DESCRIPTION At THINGS TO TRY
|