Survey
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Java byte streams data stored on an external storage medium (disks or network socket) in bytes. Byte stream classes use two-class hierarchical structures – one for reading and the other for writing. Each of these classes has subclasses of their own. Each of the subclasses is designed to handle different types of devices such as files and network connections. The classes FileInputStream.java and FileOutputStream.java are used for reading and writing data files, respectively. The abstract class InputStream.java is the super class of all byte input streams. It provides the basic input methods for reading bytes from an input stream. Subclasses of this class override some or all of these basic methods for their implementation. Object InputStream OutputStream FilterInputStream FilterOutputStream FileOutputStream FileInputStream BufferedInputStream DataInputStream DataOutputStream BufferedOutputStream Figure 1. A partial hierarchy of the byte stream classes. Object Reader Writer InputStreamReader BufferedReader FileReader LineNumberReader OutputStreamWriter BufferedWriter PrintWriter FileWriter The Character I/O Systems http://users.cis.fiu.edu/~smithjo/COP3338/Essentials/io/javaio.html