如何阅读安卓.webarchive文件 [英] how to read .webarchive file in android

查看:1038
本文介绍了如何阅读安卓.webarchive文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这样的要求。我想读.webarchive文件。我有一个文件.webarchive扩展名,我已经把资产文件夹中的文件。我想读在Android的WebView该文件。这可能吗?

I have a requirement like this. I want to read .webarchive File. I have one file with .webarchive extension and i have put that file in asset folder. I want to read that file on android webview. Is it possible?

我用Google搜索,发现一些有用的链接。这混帐内容是真的helpful.In这就是它的作用是,把资产的文件夹,并从那里数据.webarchive文件提取的内容显示在web视图。我的查询是,我不希望把提取的内容资产。我有.webarchive扩展名的文件,并希望它可以直接在web视图中打开。

I googled and found some useful link. This git content is really helpful.In this what it does is, put extracted content of .webarchive file in asset folder and from there data is shown on webview. My query is that i don't want to put extracted content in asset. I have file in .webarchive extension and want it to be opened directly in webview.

我guees zipInputStream只是对于ZIP格式的文件扩展名,而另一件事是,我读了一些在那里,只有那个zip文件将与ZipInputStram已压缩用WinRAR软件,那么在我的情况是我的尝试提取是我试图unizip webarchive文件follwing方法 http://pastie.org/8516247 ,这里是一个日志什么我收到

i guees zipInputStream is just for file name with zip format extension,and another thing is that i read some where that only that zip files will be extracted with ZipInputStram which have been zipped with WinRar Software,Well in my case what i tried is I have tried to unizip webarchive file with follwing method http://pastie.org/8516247 and here is a log what i am getting

http://pastie.org/8516249

现在从这个日志中,您可以看到命令甚至没有进入while循环中的行数6,它是证明了这一点:

now from this log you can see command is not even entering inside the while loop at line number 6 which is proved by this:

 log 11-29 13:01:46.903: V/Decompress(19936): 1

如果我使用test.warc任何zip文件就地行号4比命令进入while循环,这意味着这ZipInputStream是完全无视.WARC文件,不是吗?

And if i am using any zip file inplace of test.warc at line number 4 than command is entering in while loop,that means this ZipInputStream is completely ignoring .WARC file,isn't it?

因此​​,如果任何一个有想法如何提取.webarchive文件或读取.webarchive文件而无需提取比,请帮助我。

So if any one have idea how to extract .webarchive file or read .webarchive file without extracting it than please help me.

如果有任何想法之一,那么,请帮我

If any one having idea then please help me

感谢

推荐答案

这是在2012年 议决WONTFIX。

WebKit Bugzilla

Bug 42716 – Implement WebArchive for Android

That was RESOLVED WONTFIX in 2012.

不过,那里的东西可能是一个很好的出发点,或者点继续朝着一个可以接受的回答这个问题。

Still, what's there could be a good starting point, or point of continuation towards an acceptable answer to this question.

这篇关于如何阅读安卓.webarchive文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆