b1dfb77a22d11ed57f70b15f630820650545b234
[jpim.git] / src / de / j32 / httplib / HttpResponse.java
1 package de.j32.httplib;
2
3 import java.io.IOException;
4 import java.io.InputStream;
5 import java.net.HttpURLConnection;
6
7 public class HttpResponse extends InputStream
8 {
9     HttpURLConnection connection_;
10     InputStream stream_;
11
12     public HttpResponse(HttpURLConnection connection) throws IOException
13     {
14         connection_ = connection;
15         stream_ = connection_.getInputStream();
16     }
17
18     @Override
19     public int read() throws IOException
20     {
21         return stream_.read();
22     }
23
24     @Override
25     public void close() throws IOException
26     {
27         stream_.close();
28     }
29
30 }