java.io.File#toPath() on Windows doesn't understand "NUL:" (null device)?

Alan Bateman Alan.Bateman at oracle.com
Wed Mar 17 09:15:21 UTC 2021


On 17/03/2021 08:21, Jaikiran Pai wrote:
> :
>
> I can confirm that using "NUL" or "nul" work fine in the above code,

I don't know the context for your question but just to mention 
InputStream.nullInputStream() or Reader.nullReader() may be useful if 
you have something that wants to read from a null stream.

-Alan.



More information about the nio-dev mailing list