I\'m new to Java. Where is umask exposed in the api?
Another approach is to use a 3rd-party Java library that exposes POSIX system calls; e.g.
The problem with this approach is that it is intrinsically non-portable (won't work on a non-POSIX compliant platform), and requires a platform-specific native library ... and all that that entails.