java - First line in gzip file is not correct -


i using gzipinputstream read gzip file. gzip file contain 1 text file.

i using following code read gzip files line line

inputstream filestream = new fileinputstream("file");          gzipinputstream gzipstream = new gzipinputstream(filestream);          reader decoder = new inputstreamreader(gzipstream);         bufferedreader reader = new bufferedreader(decoder);         string line = null;         while((line=reader.readline())!=null){             //read line line         } 

i able read lines in original file(uncompressed file) except first line.

first line contains meta data , line.

this causing issue in parsing line not in format want.

how can read first line without data.


Comments

Popular posts from this blog

javascript - How to name a jQuery function to make a browser's back button work? -

python - Django-easy-pdf: xhtml2pdf reporting reportlab 2.2+ is required, but 3.0 installed -

collision detection - C++ library for mesh to mesh intersection: what is available? -