Android Tutorial The SMB library uses a Java structure

I'm getting no where trying to use the SMB library.
Specifically I need to read a text file, but the DownloadFile2 function uses a Java InputStream structure, and I'm not familiar with Java or calling Java from Basic.
How do you declare, create and initialize:
Dim iFile As java.io.InputStream ' these cause an error
Dim iBuf As ByteArrayInputStream
How do you actually read a text file with the Java InputStream functions?
iBuf = iFile.Read(iFile.Length)
Str = BytesToString(iBuf, 0, iBuf.Length, "UTF-8")
What does the Close variable do in DownloadFile2?
 
Top