0
votes

I'm using Jsch to transfer an html file from a remote server to my local system, which I plan on showing in an SWT browser. com.jcraft.jsch.ChannelSftp provides a getter method that returns an InputStream. I'm wondering if theres a way to translate that InputStream into a URL without writing the file contents out to disk.

1

1 Answers

0
votes

You can create a custom Protocol Handler, and then (in theory) anything that takes a URL object should be able to use the custom protocol to retrieve data. The protocol handler would then just encapsulate the JCraft code.