Firstly, the UnixFileParser cannot set any permissions. It simply parses directory listings so that the names, dates, sizes, etc can be extracted from them.
Secondly, I'm unclear on where you would like to set permissions. If you are wishing to set them on your local machine, you would just use the java.io classes for that. But I guess that's not what you'd like to do; you probably want to set them on the remote machine. In this case, you might have difficulties. The FTP protocol spec does not specify how to handle permissions. This does not mean that it's impossible on all servers to do it. For example, in ProFTPD you can execute a chmod using the command "SITE CHMOD 755". You'll need to look up your server's manual to see if it supports this or some other syntax.
If it supports this syntax then you can use the FTPClient.site(string) method as follows:
ftpClient.site("CHMOD 755");
- Hans (EDT)