判断InputStream流是否存在内容

  使用InputStream从ftp上下载文件,判断文件是否存在。
  byte[] check = new byte[1024];
  if(is.read(check) != -1) {
                

   }
  

posted @ 2019-06-24 11:26  Y4An24N  阅读(3998)  评论(0编辑  收藏  举报