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. 

 

posted @ 2015-03-06 16:17  java资料收集  阅读(133)  评论(0编辑  收藏  举报