如何在阅读时自己从头到尾阅读gz文件(包含十亿行)。 [英] How to read a gz file(contains billion lines)using java from bottom to top while reading itself.
本文介绍了如何在阅读时自己从头到尾阅读gz文件(包含十亿行)。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在阅读时从头到尾阅读gz文件(包含十亿行)。
提前谢谢。
How to read a gz file(contains billion lines)using java from bottom to top while reading itself.
Thanks in advance.
推荐答案
解压缩......我猜的井线...
http://examples.javacodegeeks.com/core-java/io/fileinputstream/decompress-a- gzip-file-in-java-example / [ ^ ]
然后你可以使用GZIPInputStream
立即使用对象并使用所提供的内容...
玩得开心!
Decompress the ... well lines I guess ...
http://examples.javacodegeeks.com/core-java/io/fileinputstream/decompress-a-gzip-file-in-java-example/[^]
Then you might be able to use theGZIPInputStream
object right away and work with what comes in...
Have fun!
这篇关于如何在阅读时自己从头到尾阅读gz文件(包含十亿行)。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文