Function bytes2BSTR(vIn)  
 strReturn = ""  
 For i = 1 To LenB(vIn)  
 ThisCharCode = AscB(MidB(vIn,i,1))  
 If ThisCharCode < &H80 Then  
 strReturn = strReturn & Chr(ThisCharCode)  
 Else  
 NextCharCode = AscB(MidB(vIn,i+1,1))  
 strReturn = strReturn & Chr(CLng(ThisCharCode) * &H100 + CInt(NextCharCode))  
 i = i + 1  
 End If  
 Next  
 bytes2BSTR = strReturn  
End Function  
能把这个函数转换为java语言用的吗?
我只会java语言,我先把这个在jsp页面中使用,但是看不明白。
这个函数的大意应该是对一个值进行二进制转换吧。