Try / Catch 없이 inpustStream close() 호출 방법
2024-11-201. 방법 import com.amazonaws.util.IOUtils; public void fileToInputStream(File file) { FileInputStream fileInputStream = null; try { fileInputStream = new FileInputStream(file); // ... } catch (FileNotFoundException e) { throw new RuntimeException(e); }finally { if(fileInputStream != null){//스트림 객체 안전하게 제거 IO..