protected void closeInputStream() throws IOException { //try and consume any content so that the connection might be reusable InputStream ins = connection.getErrorStream(); if (ins == null) { ins = connection.getInputStream(); } if (ins != null) { IOUtils.consume(ins); ins.close(); } } protected int getResponseCode() throws IOException {
protected void closeInputStream() throws IOException { //try and consume any content so that the connection might be reusable InputStream ins = connection.getErrorStream(); if (ins == null) { ins = connection.getInputStream(); } if (ins != null) { IOUtils.consume(ins); ins.close(); } } protected int getResponseCode() throws IOException {
protected void closeInputStream() throws IOException { //try and consume any content so that the connection might be reusable InputStream ins = connection.getErrorStream(); if (ins == null) { ins = connection.getInputStream(); } if (ins != null) { IOUtils.consume(ins); ins.close(); } } protected int getResponseCode() throws IOException {
@Override public void close() throws IOException { IOUtils.consume(is); is.close(); if (!isClosed && deserializer != null) { deserializer.markClosed(this); } isClosed = true; }
@Override public void close() throws IOException { IOUtils.consume(is); is.close(); if (!isClosed && deserializer != null) { deserializer.markClosed(this); } isClosed = true; }
@Override public void close() throws IOException { IOUtils.consume(is); is.close(); if (!isClosed && deserializer != null) { deserializer.markClosed(this); } isClosed = true; }
@Override public void close() throws IOException { IOUtils.consume(is); is.close(); if (!isClosed && deserializer != null) { deserializer.markClosed(this); } isClosed = true; }
IOUtils.consume(in, 16 * 1024 * 1024); } catch (Exception ioe) {
IOUtils.consume(in, 16 * 1024 * 1024); } catch (Exception ioe) {
IOUtils.consume(in, 16 * 1024 * 1024); } catch (IOException ioe) {