例如,一个类可能会打开一个流,并将其传递给另一个类以阅读来自文件的信息。
For example, one class may open a stream and pass it to another class to read information from a file.
清单3展示了打开一个连接并从流中读取数据的一种方法。
Listing 3 illustrates one way to open a connection and read data through a stream.
清单3展示了打开一个连接并从流中读取数据的一种方法。
Listing 3 illustrates one way to open a connection and read data through a stream.
应用推荐