I'm actually not sure if it is even possible to do such a thing as forcing other applications to read a file from Java process that returns the needed bytes instead of reading file from disk, So first of all this information can be helpful.
also you can ignore the forcing idea! Can I open others app from my java application, for example Adobe Acrobat Reader and inject bytes into it instead of opening it individually and read a pdf file with it ?
if Its possible, Can someone explain how? I've search too much in internet and I found no answer.
Also you might want to know that, my idea is to decrypt an encrypted file in memory and let some other application use decrypted bytes from my own app, instead of reading decrypted file from disk (which can be recovered!)