文件读写

Asset

context.getAssets().open(path);
context.getAssets().openFd(path);

Resource

context.getResources().openRawResource(id);
context.getResources().openRawResourceFd(id);

File

FileInputStream inputStream = new FileInputStream(path);
FileOutputStream outputStream = new FileOutputStream(path);
inputStream.getFD();
outputStream.getFD();

JavaPackage

Last updated

Was this helpful?