Code example for ReadableByteChannel

Methods: close

0
 
    public void close() throws IOException { 
        final ReadableByteChannel local = this.channel;
        this.channel = null;
        if (local != null) {
            local.close();
        } 
        if (this.entity.isStreaming()) {
            final InputStream instream = this.entity.getContent();
            instream.close();
        } 
    } 
 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE