@Override
    public ReadableByteChannel getChannel() throws IOException {
        if (type == Type.DIRECTORY)
            throw new IOException("Can not read contents of a directory");

        return new FileInputStream(wrappedFile).getChannel();
    }
@ Override public ReadableByteChannel getChannel ( ) throws IOException { if ( type == Type . DIRECTORY ) throw new IOException ( "Can not read contents of a directory" ) ; return new FileInputStream ( wrappedFile ) . getChannel ( ) ; }
{@inheritDoc}