Note that there are some explanatory texts on larger screens.

plurals
  1. POjava.io.EOFException: Unexpected end of ZLIB input stream
    primarykey
    data
    text
    <p>HI guys, testing my tar.gz extraction tool, i found thrown the exception:</p> <pre> java.io.EOFException: Unexpected end of ZLIB input stream at java.util.zip.InflaterInputStream.fill(Unknown Source) at java.util.zip.InflaterInputStream.read(Unknown Source) at java.util.zip.GZIPInputStream.read(Unknown Source) at sun.nio.cs.StreamDecoder.readBytes(Unknown Source) at sun.nio.cs.StreamDecoder.implRead(Unknown Source) at sun.nio.cs.StreamDecoder.read(Unknown Source) at java.io.InputStreamReader.read(Unknown Source) at java.io.BufferedReader.fill(Unknown Source) at java.io.BufferedReader.readLine(Unknown Source) at java.io.BufferedReader.readLine(Unknown Source) at it.uniroma2.informatica.specialistica.IO.ScanCompressedFileUtil.main(ScanCompressedFileUtil.java:60 </pre> <p>So the code at line 60 is:</p> <pre><code>BufferedReader bufLe= reader.remove(); try { while ( bufLe.ready() ){ System.out.println(" "+bufLe.readLine()); } } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } </code></pre> <p>where calling <em>buffer.readLine()</em>, throws the exception. When I open the tar.gz, I kept the stream of all single file, like BuffReader then I put them to a linkedList, and then i Closed the buffer of the file tar.gz opened. But When I pop an element within the linked list and then try to read line by line. I have the execption..</p> <p>SOmeOne have an IDEa why i have the exception??? Maybe I wrong somthin when I iterate through the files within the tar.gz?? to doing so i have the code:</p> <pre><code>TarInputStream is = new TarInputStream(gzipInputStream); TarEntry entryx = null; try { while((entryx = is.getNextEntry()) != null) { InputStream tmpInx = new StreamingTarEntry(is, entryx.getSize()); // questo viene invocato perchè il file da lettere è un file txt manageTxtinsideTAR(tmpInx , buffer); // I add the stream to a linked list </code></pre> <p>THe class STREAMINGTARENTRY, extends FilterInputStream, so it's only wraps the stream.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload