import java.io.IOException; import java.io.InputStream; import javax.microedition.io.Connector; import javax.microedition.io.HttpConnection; import javax.microedition.lcdui.Display; import javax.microedition.lcdui.TextBox; import javax.microedition.midlet.MIDlet; public class J2MESecondExample extends MIDlet { private Display display; private String url = "http://writers.h2m.ru/info.php"; public J2MESecondExample(){ display = Display.getDisplay(this); } public void startApp(){ try { downloadPage(url); }catch(Exception e){} } private void downloadPage(String url) throws Exception{ StringBuffer b = new StringBuffer(); InputStream is = null; HttpConnection c = null; TextBox t = null; try { long len = 0; int ch = 0; c = (HttpConnection) Connector.open(url); is = c.openInputStream(); len = c.getLength(); if(len != -1) { for(int i=0;i