import java.io.InputStream;
import java.net.HttpURLConnection;
-public class HttpResponse
- extends InputStream
+public class HttpResponse extends InputStream
{
- HttpURLConnection connection_;
- InputStream stream_;
-
- public HttpResponse(HttpURLConnection connection)
- throws IOException
- {
- connection_ = connection;
- stream_ = connection_.getInputStream();
- }
-
- @Override
- public int read()
- throws IOException
- {
- return stream_.read();
- }
+ HttpURLConnection connection_;
+ InputStream stream_;
+
+ public HttpResponse(HttpURLConnection connection) throws IOException
+ {
+ connection_ = connection;
+ stream_ = connection_.getInputStream();
+ }
+
+ @Override
+ public int read() throws IOException
+ {
+ return stream_.read();
+ }
+
+ @Override
+ public void close() throws IOException
+ {
+ stream_.close();
+ }
- @Override
- public void close()
- throws IOException
- {
- stream_.close();
- }
-
}