0% found this document useful (0 votes)
4 views1 page

Java IO Streams Summary

The document provides a summary table of Java I/O Streams, detailing various classes, their types, purposes, and use cases. It categorizes streams into Byte Streams and Character Streams, highlighting their functionalities such as reading from/writing to files and memory. Additionally, it includes bridge classes that convert between byte and character streams.

Uploaded by

sreekantha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views1 page

Java IO Streams Summary

The document provides a summary table of Java I/O Streams, detailing various classes, their types, purposes, and use cases. It categorizes streams into Byte Streams and Character Streams, highlighting their functionalities such as reading from/writing to files and memory. Additionally, it includes bridge classes that convert between byte and character streams.

Uploaded by

sreekantha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Java I/O Streams Summary Table

Class Type Purpose Reads From / Writes To Use Case

FileInputStream Byte Stream Reads raw bytes from a file File Reading binar

FileOutputStream Byte Stream Writes raw bytes to a file File Writing binary

DataInputStream Byte Stream Reads Java primitives (int, float, etc.) InputStream Reading struc

DataOutputStream Byte Stream Writes Java primitives OutputStream Writing structu

BufferedInputStream Byte Stream Buffers input for performance InputStream Efficient binar

BufferedOutputStream Byte Stream Buffers output for performance OutputStream Efficient binar

ByteArrayInputStream Byte Stream Reads from a byte array Memory (byte[]) Simulating inp

ByteArrayOutputStream Byte Stream Writes to a byte array Memory (byte[]) Capturing out

SequenceInputStream Byte Stream Combines multiple input streams Multiple InputStreams Merging multi

FileReader Character Stream Reads text (characters) from a file File Reading text f

FileWriter Character Stream Writes text to a file File Writing text fil

BufferedReader Character Stream Buffers text input for performance Reader Efficient line-b

BufferedWriter Character Stream Buffers text output Writer Efficient writin

InputStreamReader Bridge (BytetoChar) Converts byte stream to character stream InputStream Reading text f

OutputStreamWriter Bridge (ChartoByte) Converts character stream to byte stream OutputStream Writing text to

You might also like