• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HttpConnection

 
Ransika deSilva
Ranch Hand
Posts: 524
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,
I have started to study the javax.microedtion.io package. I got some questions. Could you please go through and answer them.

It is said that
The transition to Closed state from any other state is caused by the close method and the closing all of the streams that were opened from the connection (Page 66 MIDP 2.0).
Does this mean that if all the streams are not closed, the connection doesnt' go the the closed state? cause in the same page it is said that
When an output stream is closed via the OutputStream.close or DataOutputStream.close methods, the connection enters the Connected state
. Could you please explain these two differences?

Do we have to memorize all the HTTP fields of the HttpConnection class, for instance HTTP_USE_PROXY, HTTP_UNSUPPORTED_TYPE etc?

Thanks
[ June 17, 2005: Message edited by: Ransika deSilva ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic