FileOutPutStream() -- we can directly writes byte into a file, Takes the argument as File
ByteArrayOutputStream() - creates a new byte array output stream with the initial capacity of 32 bytes, though its size increases if necessary.
SequenceInputStream - (read or write to a file in sequence)
BufferOutputStrean or input - class use an internal buffer to store the data
fileReader and fileWriter - Java has suggested not to use the FileInputStream and FileOutputStream classes if you have to read and write the textual information
can be used for byte read of byte write like csv or xls
CharArrayWriter - write same to multiple files
There are many ways to read data from the keyboard. For example:
InputStreamReader
Console
Scanner
DataInputStream etc.
InputStreamReader goes to bufferReader BufferedReader br=new BufferedReader(inputstreamReaderObject);
PrintStream automatically Flushes the data - don't throws IO Exception
PrintStream is uses to write the data to another stream.
System.Out - in it out return the object of print stream.
ByteArrayOutputStream() - creates a new byte array output stream with the initial capacity of 32 bytes, though its size increases if necessary.
SequenceInputStream - (read or write to a file in sequence)
BufferOutputStrean or input - class use an internal buffer to store the data
fileReader and fileWriter - Java has suggested not to use the FileInputStream and FileOutputStream classes if you have to read and write the textual information
can be used for byte read of byte write like csv or xls
CharArrayWriter - write same to multiple files
There are many ways to read data from the keyboard. For example:
InputStreamReader
Console
Scanner
DataInputStream etc.
InputStreamReader goes to bufferReader BufferedReader br=new BufferedReader(inputstreamReaderObject);
PrintStream automatically Flushes the data - don't throws IO Exception
PrintStream is uses to write the data to another stream.
System.Out - in it out return the object of print stream.
Comments
Post a Comment