I have been scouring the Internet looking for a Java package/class that will allow me to parse the UNIX /etc/group file. While it really wouldn’t be so hard to write this from scratch, I’m quite surprised not to find something already out there. There is a POSIX passwd class (see http://www.bmsi.com/java/posix/docs/posix.Passwd.html), but I’m not finding a similar class for /etc/group. Does such a thing exist?
I have been scouring the Internet looking for a Java package/class that will allow
Share
Heres my code that tofubeer updated that I updated again. His didn’t compile. missing InvalidGroupException class. Also, no package was specified. Switched EMPTY_LIST to emptyList() to avoid lack of parameterization.