比String更大的数据类型

use*_*741 -1 java android

从服务器返回到我的Android应用程序的POST消息响应是一篇文章.遗憾的是,String数据类型无法存储整篇论文.

你能建议我可以这样使用的数据类型:

HttpResponse response = httpclient.execute(httppost);
HttpEntity resEntity = response.getEntity();

String result = EntityUtils.toString(resEntity);
Run Code Online (Sandbox Code Playgroud)

当我System.out.println(result)没有向我展示整篇文章.

ner*_*sol 8

我不认为这是String尺寸问题.

例如.

覆盖有字符的A4页面存储大约5000个字符.Acording到这个,最大长度String为2147483647个字符.

2147483647/5000 = 429496 pages
Run Code Online (Sandbox Code Playgroud)

EncyclopædiaBritannica有32640页,大约44000000个单词,每个单词平均6.1个字符.

你为什么要发送8个Encyclopædias?

  • 人们是否仍然使用由a和e组成的奇怪信件? (2认同)