final char[] buffer = new char[0x1000];
StringBuilder out = new StringBuilder();
Reader in = null;
if (urlConnection.getResponseCode() == 304) {
throw new NotModifiedException();
} else if (urlConnection.getResponseCode() < 400) {
in = new InputStreamReader(urlConnection.getInputStream(), "UTF-8");
} else {
in = new InputStreamReader(urlConnection.getErrorStream(), "UTF-8");
}