I have read through the Security with HTTPS and SSL documentation from Android. I see that it keeps using copyInputStreamToOutputStream(in, System.out);
. That gives me
error: cannot find symbol method copyInputStreamToOutputStream(InputStream,PrintStream)
Here's the code in question:
URL url = new URL("https://wikipedia.org");
URLConnection urlConnection = url.openConnection();
InputStream in = urlConnection.getInputStream();
copyInputStreamToOutputStream(in, System.out);
What is the meaning of copyInputStreamToOutputStream
?