Bug #1085
closedWrite code for "getResourceAsString_Comand.java" command
0%
Description
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
data?
(Can we use any existing XPCOM functionality for this or should it all be a java
command?)
Updated by Matthew Brooke about 24 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
be disregarded
Updated by Matthew Brooke about 24 years ago
damn - when I added the previous comment, it renumbered the comment I was
referring to :-(
- anyway - refer to the date, not the note number
Updated by Matthew Brooke over 21 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()"
Updated by Matthew Brooke almost 20 years ago
rediuced priority - will ultimately still be needed, but not for 1.0.0beta1