Question: How can I apply a FilterInputStream to an NIO Channel, specifically a FileChannel obtained from a RandomAccessFile?

Answer: 
```
import java.nio.channels.*;
InputStream in = new MyFilterInputStream(Channels.newInputStream(channel));

```

But then why the channel?
Please follow the below working example: 

[Using FileChannel to random access to a File](http://www.java2s.com/Tutorial/Java/0180__File/UsingFileChanneltorandomaccesstoaFile.htm)