當前位置:
首頁 >
code异常处理
發布時間:2025/3/14
14
豆豆
private void copyPrivateRawResuorceToPubliclyAccessibleFile() {
InputStream inputStream = null;
FileOutputStream outputStream = null;
try {
XX
/*異常處理*/
try {
while ((length = inputStream.read(buffer)) > 0){
outputStream.write(buffer, 0, length);
}
} catch (IOException ioe) {
/* ignore */
}
} catch (FileNotFoundException fnfe) {
/* ignore */
} finally {
/*異常處理*/
try {
if (inputStream != null)
inputStream.close();
} catch (IOException ioe) {
/* ignore */
}
/*異常處理*/
try {
if (outputStream != null)
outputStream.close();
} catch (IOException ioe) {
/* ignore */
}
}
}
?
轉載于:https://www.cnblogs.com/wcLT/p/5898917.html
總結
- 上一篇: [技术分享]利用MSBuild制作msf
- 下一篇: 用户和组相关配置文件