xebialabs/nio-overthere — pull request #2 by helsing (2014-04-24 16:02:15+00:00)
Title: Fix for issue #1 - Issue reading remote files with Files.newBufferedRead...

I override newInputStream(...) in order to pass through the options to newByteChannel(...). This is so the input stream can be correctly created. Also if no options are provided I added the READ option as default, according to the description of this method, described here:
http://docs.oracle.com/javase/7/docs/api/java/nio/file/Files.html#newInputStream(java.nio.file.Path,java.nio.file.OpenOption...) "If no options are present then it is equivalent to opening the file with the READ option."

Related background information found in Oracles bug database:
http://mail.openjdk.java.net/pipermail/nio-dev/2011-December/001513.html