c35adb41ee69c4e276f7b43403c7ee3c3d23e0a0
[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
8         extends InputStream
9 {
10         HttpURLConnection connection_;
11         InputStream stream_;
12         
13         public HttpResponse(HttpURLConnection connection)
14                 throws IOException
15         {
16                 connection_ = connection;
17                 stream_ = connection_.getInputStream();
18         }
19         
20         @Override
21         public int read()
22                 throws IOException
23         {
24                 return stream_.read();
25         }
26
27         @Override
28         public void close()
29                 throws IOException
30         {
31                 stream_.close();
32         }
33         
34 }