如果有类关闭了流,那么结果将会是文件资源的泄露(参见图3)。
If neither class closes the stream, the result will be a file resource leak. (See Figure 3.)
例如,一个类可能会打开一个流,并将其传递给另一个类以阅读来自文件的信息。
For example, one class may open a stream and pass it to another class to read information from a file.
另外,还提供一些类来在系统上创建新的后台打印文件,生成scs打印机数据流。
Additionally, classes are provided to create new spooled files on the system, and to generate SCS printer data streams.
应用推荐