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();
        } 
    } 
 
} 
Contextual code suggestions in your IDE  Get Codota for Java