luciddream
Programmer
i have the following code:
import java.net.*;
import java.io.*;
import java.applet.*;
import java.awt.*;
public class IOStreamap extends Applet{
String inputLine;
public void Init(String[] args) throws Exception {
URL streamer = new URL(" BufferedReader in = new BufferedReader(
new InputStreamReader(
streamer.openStream()));
while ((inputLine = in.readLine()) != null)
inputLine += inputLine;
in.close();
}
public String getLine() {
return inputLine;
}
}
it worked fine before i turned it into an applet, but now it doesn't seem to work. if anyone sees anything wrong with it, it'd greatly appreciate the help.
import java.net.*;
import java.io.*;
import java.applet.*;
import java.awt.*;
public class IOStreamap extends Applet{
String inputLine;
public void Init(String[] args) throws Exception {
URL streamer = new URL(" BufferedReader in = new BufferedReader(
new InputStreamReader(
streamer.openStream()));
while ((inputLine = in.readLine()) != null)
inputLine += inputLine;
in.close();
}
public String getLine() {
return inputLine;
}
}
it worked fine before i turned it into an applet, but now it doesn't seem to work. if anyone sees anything wrong with it, it'd greatly appreciate the help.