JSR 203 article
Mark Thornton
mthornton at optrak.co.uk
Fri Jun 27 12:57:13 PDT 2008
Elliotte Harold wrote:
> I'm working up an article about the new filesystem API designed for JSR
> 203 for java.net. It focuses on the most basic pieces: copying and
> moving files and querying metadata.
>
> If anyone would like to take a look at it prior to publication, let me
> know and I'll send you a link or a draft.
>
I hope you also mention a few fixes to flaws in the existing io support.
Path.delete() is rather more informative when it fails than the old
File.delete() method. For example, if the file is open I get this
java.nio.file.FileSystemException:
C:\Users\MTHORN~2\AppData\Local\Temp\chk8666.tmp: The process cannot
access the file because it is being used by another process.
The Path resolve and relativize methods are other simple but welcome
additions.
Mark Thornton
More information about the nio-discuss
mailing list