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

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

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