IO

 

java.io .Class InputStream

public  abstract class InputStreamextends Objectimplements Closeable

This abstract class is the superclass of all classes representing an input stream of bytes.

Applications that need to define a subclass of InputStream must always provide a method that returns the next byte of input. 

java.io.Class Reader

public abstract class Readerextends Objectimplements Readable, Closeable


Abstract class for reading character streams. The only methods that a subclass must implement are read(char[], int, int) and close(). Most subclasses, however, will override some of the methods defined here in order to provide higher efficiency, additional functionality, or both. 

原文地址:https://www.cnblogs.com/01picker/p/4318579.html