我正在閱讀zip文件中的一個巨大的txt文件。閱讀最後* n *來自GZIPInputStream的行
GZIPInputStream fstream = new GZIPInputStream(new FileInputStream(zipfile));
BufferedReader breader = new BufferedReader(new InputStreamReader(fstream));
我需要閱讀最後 n行的文件。
是否有可能做到這一點沒有readline直到eof?
它是無法讀取流/字典壓縮「文件」,除非有類似Z_FULL_FLUSH(和傾倒的字典) – bestsss