I am trying to read an GZ file which has EBCDIC data and need to write the records into output file if that records has an character in a given position.

I have done the below:

Read the GZ file line by line using Buffered reader and GZInputStream, however when I read line ny line I am not able to compare the input char with the record.
I have specified the encoding as Cp1047 for the reader.
I am converting...