public class ParsingDownload {
public static void PageDownload() throws MalformedURLException {
URL url = new URL("yandex.ru");
try {
InputStream page = url.openStream();
while (true) {
int oneByte = page.read();
if (oneByte != -1) {
System.out.printf(String.valueOf((char) oneByte));
} else {
break;
}
}
} catch (Exception e) {
System.out.println("lol");
}
}
}