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
Post a Comment