Code example for ReadableByteChannel

Methods: close

0
            return; 
        } 
        if (closefd) {
            try { 
                if (readChannel != null) {
                    readChannel.close();
                    if (writeChannel != null && readChannel != writeChannel) {
                        writeChannel.close();
                    } 
                } else { 
                    writeChannel.close();
                } 
            } catch (IOException ioe) {
                throw Py.IOError(ioe);
            } 
        } 
        super.close(); 
    } 
 
    /** Unwrap one or more nested FilterInputStreams. */ 
    private static FileDescriptor getInputFileDescriptor(InputStream stream) throws IOException {