1 package de.j32.httplib;
3 import java.io.IOException;
4 import java.io.InputStream;
5 import java.net.HttpURLConnection;
7 public class HttpResponse extends InputStream
9 HttpURLConnection connection_;
12 public HttpResponse(HttpURLConnection connection) throws IOException
14 connection_ = connection;
15 stream_ = connection_.getInputStream();
19 public int read() throws IOException
21 return stream_.read();
25 public void close() throws IOException