public static void main(String[] args) throws Exception {
// TODO Auto-generated method stub
try {
SmbFile smbFile = new SmbFile("smb://用户名:密码@远程IP/共享文件/共享文件中需要读取的文本");
int length = smbFile.getContentLength();
byte buffer[] = new byte[length];
SmbFileInputStream in = new SmbFileInputStream(smbFile);