1.Java IO Overview

Source: Internet
Author: User
Tags ftp protocol

The Java API native supports IO operations. Java IO is primarily designed to read (input) and write (ouput) data.

Most programs need to process some input data (such as file data, network data, and so on) and produce output based on these input data. Here are a few scenarios where we often encounter:

1. The compression software needs to read the file to be compressed and output the compressed file to another file.

2. When accessing FTP we need to read the network data (using the FTP protocol to read the contents of the FTP server), and we will also write data to the FTP server over the network.

Most of the Java IO-related classes are located in the java.io package. If you look at the classes in the java.io , you will find that there are too many classes under the package, which may confuse you.

I counted it. The java.io package in JDK1.7 contains 86 classes or interfaces. What are the purposes of these classes? What kind of class do we need to choose to complete a particular job?

If you extend the java.io package? You will be a mirror after learning this series!

The classes in Java that are related to input input are not all in the java.io package. For example, output classes that output to the GUI are provided by the JFC framework; the output to the browser class is

Provided by the Servlet API. Java IO focuses on reading and writing file streams, network streams, memory buffers, and so on. When reading the network stream and the network interaction part by the Java

The socket API is responsible.

1.Java IO Overview

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.