Files.createFile() makes use of newByteChannel(); what if the fs does _not_ support .newByteChannel()?
Francis Galiegue
fgaliegue at gmail.com
Wed Dec 16 13:44:30 UTC 2015
Hello,
All is in the question really...
The javadoc of .newByteChannel() on the provider says that
UnsupportedOperationException will be thrown if one OpenOption is not
supported, but since the filesystems I develop cannot return any
meaningful form of SeekableByteChannels at all, I always throw
UnsupportedOperationException...
--
Francis Galiegue, fgaliegue at gmail.com, https://github.com/fge
JSON Schema in Java: http://json-schema-validator.herokuapp.com
Parsers in pure Java: https://github.com/fge/grappa
More information about the nio-dev
mailing list