public class ResourceIOAdapter extends Object implements IIOAdapter
| Constructor and Description |
|---|
ResourceIOAdapter() |
| Modifier and Type | Method and Description |
|---|---|
OutputStream |
create(String path)
创建一个新文件以供输出
|
InputStream |
open(String path)
打开一个文件以供读取
|
public InputStream open(String path) throws IOException
IIOAdapteropen in interface IIOAdapterpath - 文件路径IOException - 任何可能的IO异常public OutputStream create(String path) throws IOException
IIOAdaptercreate in interface IIOAdapterpath - 文件路径IOException - 任何可能的IO异常Copyright © 2014–2021 码农场. All rights reserved.