Java I/O technology and javao Technology

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.