为啥我读取gz文本内容,总是报错java.util.zip.ZipException: Not in GZIP format?

总是读取不了gz文本

try {
            BufferedReader reader = new BufferedReader(new InputStreamReader(
                    new GZIPInputStream(
                            new FileInputStream("D:/Ericsson/data/qixx/logs/20190101/sog03_log-20190101.txt.gz")),
                    "iso-8859-1"));

            String line = null;

            while ((line = reader.readLine()) != null) {
                System.out.println(line);
            }

        } catch (IOException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }

https://blog.csdn.net/asty9000/article/details/82251089
https://blog.csdn.net/m0_37970877/article/details/80548763
希望可以帮到你