Should FileTime be serializable?

Mark Thornton mthornton at optrak.co.uk
Fri Aug 28 01:26:07 PDT 2009


Alan Bateman wrote:
> Mark Thornton wrote:
>> That is java.nio.file.attribute.FileTime. According to the b70
>> documentation it isn't.
>>
>> Regards,
>> Mark Thornton
>>
> The class does lend itself to being serialized. Have you come across a 
> need for this?
>
> -Alan.
>
I was contemplating a simple backup application to test out the new api 
and decided to serialize the file metadata. Some it (e.g. UserPrincipal) 
needs to be translated to another form, but I did not see any good 
reason why FileTime could not serialize itself.

Mark



More information about the nio-discuss mailing list