How to open Word Document using java?

Respected Sir/ Madam,

I am doing my project in Network Security using java. I have to transfer the files from server to the client. Each transferred file should have some of the access privileges such as read, write and exeucte. If the transferred file is a word document means then automatically the client should open Microsoft word and if the file is having Read Permission alone then the save, Save As, cut,copy, paste options in the MS - Word should be disabled. This is similar for all the files that i have transferred. That is if the transferred file is excel, audio, video,txt file the corresponding application should be opened properly. How could I acheive this. If the file is having write permission then if the user clicks the save option then the contents of the file should be saved in the server machine not in the client machine, Could we achieve this? Can anyone help me regarding this? Please give me your views about this query?

[962 byte] By [indira_mcaa] at [2007-11-26 21:40:49]
# 1
You can't do any of that in Java except transfer the files. The rest of it is an exercise in various Microsoft APIs.
ejpa at 2007-7-10 3:25:44 > top of Java-index,Core,Core APIs...
# 2
Respected Sir / Madam, Thank you very much for your reply. Could we use Microsoft API inside java program to achieve my doubts? Could U explain it more?
indira_mcaa at 2007-7-10 3:25:44 > top of Java-index,Core,Core APIs...
# 3
No and no.
ejpa at 2007-7-10 3:25:45 > top of Java-index,Core,Core APIs...
# 4
I think you can use windows api using JNI, but I'm just guessing.
sekizoglua at 2007-7-10 3:25:45 > top of Java-index,Core,Core APIs...
# 5
Time for a fun exercise in reverse engineering!
zaboomafoozarga at 2007-7-10 3:25:45 > top of Java-index,Core,Core APIs...
# 6
gnihton si elbissopmi *lol*
sekizoglua at 2007-7-10 3:25:45 > top of Java-index,Core,Core APIs...