utils object explained

The utils object holds a few utilities that make it easy to interact with BlueJ. They are fairly trivial ones but quite useful. Some more may be added in the future.

utils.inputStreamGet( String someSource )

This method will return an InputStream given some sort of url. It will return null in case of error. The resulting stream can be given to the next utility.

utils.transferProject( String destDir, InputStream fromZipStream )

This method will retrieve a given zip stream and expand it into the given directory. For examples on how to use the above see the javascript code that is in the rest of the documentation.