[685] in java-interest
Calling AWK scripts from within an Applet... possible?
daemon@ATHENA.MIT.EDU (Madhu Surendranath)
Thu Jul 13 08:01:07 1995
Date: Thu, 13 Jul 1995 11:54:40 +0000
From: madhu.surendranath@bt-sys.bt.co.uk (Madhu Surendranath)
To: java-interest@java.sun.com
Cc: madhu@bt-sys.bt.co.uk
Hi,
We are writing some information processing Applets. At the moment, I have to parse a 2MB file and retrieve certain bits of information from it.
Now, I know that I can set up a Stream and use StreamTokenizer to take the relevant information, but unfortunately, it takes *TOO* long, especially since I have to parse this file around 50 times!
I've created some AWK scripts to get the data out, which work very quickly. Here's what I want to do :-
1) From the Applet, set some variables
2) Pass the value of these variables to the AWK script
3) The AWK script will create a data file, say "madhu.dat"
4) Applet will read "madhu.dat" and continue
Is this possible? I know that Java's security does not allow access to the filesystem directly, so does this mean that I can *only* access these data files via Java Streams?
Or do I have to setup a Server using Java's net.NetWorkServer that will handle the requests from the Applet?
Any ideas or help will be greatly appreciated, bye, Madhu.
+---+-------------------------+------------------------------------------+--+
| _/_/_/_/ _/_/_/ _/_/_/_/ | Madhu Surendranath |
| _/ _/ _/ _/ _/ _/ _/ | Information Visualisation, Systems Research |
| _/ _/ _/ _/_/_/ _/ _/ | BT Labs, Martlesham Heath, Ipswich, UK. |
| _/ _/ _/ _/ _/ _/_/_/_/ | "One man CAN make a difference....." |
| All views expressed are my own and not necessarily shared by BT PLC |
+--+--------------------------+------------------------------------------+--+
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com