readUTF timeout
Posted
by Hassan Voyeau
on Stack Overflow
See other posts from Stack Overflow
or by Hassan Voyeau
Published on 2010-04-21T13:45:38Z
Indexed on
2010/04/21
21:43 UTC
Read the original article
Hit count: 291
I am getting a timeout with the following code at readUTF. Any idea why?
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();
© Stack Overflow or respective owner