Not really. You could create a java class and/or method to do this automatically. Again, I cannot recommend this since it would be a serious security flaw. You would have no way to know that the creator of the file wasn't the owner of the directory. In forensic terms, the chain of ownership becomes suspect. Why do you want to do this?
if there is no way of doing this on linux, is there a way to do it in java, without explicity connecting and changing the permissions? (i know java isn't the topic here)