On Windows this can be done using one of our products - SolFS OS Edition or Callback File System. Both have JNI interface to their functions. You can check the differences between two products in the comparison chart.
SolFS OS Edition is available also for MacOS X and can be released for Linux (we have the code, but didn't release the product).
On Linux the analog of CBFS is FUSE, on MacOS it's MacFUSE.