支持解析二进制流及JSON串
首先要从FTP上获取File对象
public File getRemoteCompFiles( String fileName) throws JSchException, SftpException, FileNotFoundException {
String remoteFilepath = “文件所在目录” + fileName;
File targetFile = new File(System.getProperty("java.io.tmpdir"), fileName);
try {
LOGGER.info("获取服务器文件[{}:{}:{}]路径[{}]文件数据", ftpMsxfPort, ftpMsxfHost, ftpMsxfUserName, remoteFilepath);
SftpUtil.downloadFtpFile(ftpMsxfPort,ftpMsxfHost, ftpMsxfUserName, remoteFilepath, targetFile.getAbsolutePath(), ftpMsxfPassword);
} catch (Exception e) {
LOGGER.error(e.getM