X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=src%2Fde%2Fj32%2Fhttplib%2FHttpResponse.java;h=b1dfb77a22d11ed57f70b15f630820650545b234;hb=e4126a1787b7045a53f6074e9ef15681c9f5fde4;hp=c35adb41ee69c4e276f7b43403c7ee3c3d23e0a0;hpb=276d9a69fa796728169c2992921a1e4bd875f549;p=jpim.git diff --git a/src/de/j32/httplib/HttpResponse.java b/src/de/j32/httplib/HttpResponse.java index c35adb4..b1dfb77 100644 --- a/src/de/j32/httplib/HttpResponse.java +++ b/src/de/j32/httplib/HttpResponse.java @@ -4,31 +4,27 @@ import java.io.IOException; 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(); - } - }