Query : AsynchronousFileChannel Open options
Alan Bateman
Alan.Bateman at Sun.COM
Mon May 5 10:50:27 PDT 2008
Umashankar wrote:
> Alan,
> I am specifying either CREATE_NEW or CREATE option only. No other
> options included.
>
As currently specified, if neither the READ or WRITE option is present
then the method defaults to opening an existing file for reading. This
makes it easy for the common case but perhaps non-intuitive when other
options are present (in particular options that are usually only
relevant for writing, or reading + writing). I'll note this as something
to re-examine after JavaOne.
-Alan.
More information about the nio-dev
mailing list