static FileOutputStream newFileOutputStream(File path) throws IOException { ret newFileOutputStream(path.getPath()); } static FileOutputStream newFileOutputStream(S path) throws IOException { ret newFileOutputStream(path, false); } static FileOutputStream newFileOutputStream(File path, bool append) throws IOException { ret newFileOutputStream(path.getPath(), append); } static FileOutputStream newFileOutputStream(S path, bool append) throws IOException { mkdirsForFile(path); FileOutputStream f = new FileOutputStream(path, append); ifndef LeanMode _registerIO(f, path, true); endifndef ret f; }