Java I/O technology and javao Technology
1. stream classification
Most Java stream classes are derived from InputStream, OutputStream, Reader, and Writer.
(1) Data Flow
Input stream (subclass of InputStream class and Reader class)
Output stream (subclass of OutputStream class and Writer class)
(2) By Data Type
Byte stream (subclass of InputStream class and OutputStream class)
Volume stream (subclass of Reader class and Writer class)
(3) implemented Functions
Node streams such as FileReader and FileInputStream
Stream processing, such as BufferedReader and BufferedInputStream
1. File)
The File class is constructed as follows:
(1) File (String pathname) creates a new File instance based on the abstract path converted into a pathname String.
(2) File (String pathname, String child) creates a new File instance based on the pathname String and the child pathname String.
(3) File (File parent, String child) creates a new File instance based on the abstract path name and child path name String of parent.
(4) File (URL uri) creates a new File instance based on the abstract path name converted by URI.