Slide 5.7: Fetching a page using an HttpConnection Slide 6.1: Palm OS Home |
HttpConnection
(Cont.)
HttpConnection c = null;
Setup
, Connected
, and Closed
.
len = c.getLength( );
HttpConnection
is its subinterface.
content-length
header field is returned.
while ( (ch = is.read( )) != -1 ) {
b.append( (char) ch );
char
argument to this string buffer.
The length of this string buffer increases by 1.
len = is.available( );