Motorola E680 - Smartphone - GSM Developer's Manual page 45

Micro edition (j2me) applications
Hide thumbs Also See for E680 - Smartphone - GSM:
Table of Contents

Advertisement

12
Network APIs
bytes_left);
byteCounts[i]);
ex.getMessage());
45
{
bytes_read = is[i].read(buffer, offset,
offset += bytes_read;
bytes_left -= bytes_read;
byteCounts[i] += bytes_read;
}
while (bytes_read > 0);
System.out.println("byte read = " +
} catch (Exception ex) {
System.out.println("Downloading Failed: "+
numPassed = 0;
}
finally {
try {
} catch (Exception ex) {}
}
}
/**
*
close http connection
*/
if (hc[i] != null)
{
try {
hc[i].close();
} catch (Exception ex) { }
hc[i] = null;
}
is[i].close();
is[i] = null;

Advertisement

Table of Contents
loading

Table of Contents