It looks like the encryption is file based, it takes a file and outputs an encrypted file.
It should be possible to call the example code with JavaObject.
I have also collected everything I have been able to pick up about jPOI from this forum and created a library for it (source code included), perhaps you can also find some other useful things..