Basically, a stream is an ordered look at a sequence of bytes for input or output.Low-level streams provide direct access to the underlying bytes, like a FileInputStream, FileOutputStream, or CharArrayWriter, where reading and writing work directly with the underlying input/output device. High-level streams, or filters, instead build upon the low-level streams to provide additional capabilities, like buffering, counting lines, compressing data, or reading/writing higher-level data members like primitives or objects. You can chain multiple filters together to get multiple higher-level operations on a single low-level stream.
Java
Topic: I/O Streams
What is a stream?
Browse random answers:
What is the difference between RandomAccessFile and File?
How do I append to end of a file in Java?
How do I check for end-of-file when reading from a stream?
How do I copy a file?
What is a stream?
How can I open the same file for reading as well as writing?
How do I list all drives/filesystem roots on my system?
How to insert content into the middle of a file without overwriting the existing content?
What is the difference between the Reader/Writer class hierarchy and the InputStream/OutputStream class hierarchy?
What is the purpose of the File class?
What an I/O filter?
What class allows you to read objects directly from a stream?
How do I write text to a file?
How do I get the creation date and time of a file?
What is Serialization and deserialization?
How can I customize the seralization process? i.e. how can one have a control over the serialization process?
How to make a class or a bean serializable?
Explain BufferedInputStream(InputStream in) in java?
Explain BufferedInputStream(InputStream in, int size) in java?
Explain available() metod in Bufferedinputstream in java?
Explain Close() method in BuffereInputStream in java?
Explain read(byte[] b, int off, int len) in BuffredInputStream in java?
Explain BufferedOutputStreampublic BufferedOutputStream(OutputStream out, int size)?
Explain method public void write(int b) throws IOException buffered output stream.in java?
Explain method public void write(byte[] b,int off,int len) of BufferdOutStream in java?
Explain method public BufferedOutputStream(OutputStream out,int size) in java?
How to make a file read only?