我正在尝试从JarInputStream读取文件,文件大小返回-1。我正在从URL作为inputStream访问Jar文件。URLConnectioncon=url.openConnection();JarInputStreamjis=newJarInputStream(con.getInputStream());JarEntryje=null;while((je=jis.getNextJarEntry())!=null){htSizes.put(je.getName(),newInteger((int)je.getSize()));if(je.isDirectory()){conti