Write code for "getResourceAsString_Comand.java" command
Write code for "getResourceAsString_Comand.java" command which takes a url as an
argument (either a file:// url or an http: or ftp: etc - any others??) and gets the resource
that the url points to. Then returns this resource as a string to the caller.
If the resource turns out to be a binary file, this class would detect that fact and encode it
as a base64 string.
If this is the case, we probably need to return the MIME type as well as the encoded
(Can we use any existing XPCOM functionality for this or should it all be a java
#1 Updated by Matthew Brooke almost 19 years ago
have checked in stub code for getResourceAsString_Command.java - currently
simply returns the Map it was passed.
This enabled me to make the edit to the getResourceContent() method in
chrome/content/jalama_library/jalama_library.js, as described in the note
"Additional Comment #1 From Matthew Brooke 2003-06-05 17:23" - so this can now
#3 Updated by Matthew Brooke over 16 years ago
The initial purpose for this command is so it can be called from the data package wizard
when inlining data.
When the code is done, the actual call should be made from the chrome/content/
jalama_library/jalama_library.js - within the function "getResourceContent()"