【发布时间】:2010-04-21 13:45:38
【问题描述】:
我在 readUTF 中使用以下代码超时。知道为什么吗?
hc = (HttpConnection) Connector.open("http://twitter.com/statuses/user_timeline/" + username + ".json");
int rc = hc.getResponseCode();
if (rc != HttpConnection.HTTP_OK) {
throw new IOException("HTTP response code: " + rc);
}
DataInputStream dataInputStream = hc.openDataInputStream();
String list = dataInputStream.readUTF();
【问题讨论】:
-
我需要的是 DataInputStream 的字符串表示
标签: java json blackberry twitter