Eliminate ByteBuffers

Elliotte Harold elharo at metalab.unc.edu
Mon Oct 6 08:07:14 PDT 2008


Mark Thornton wrote:

> What sort of data do you expect to find in named attributes? NTFS 
> alternate data streams could contain anything and would usually be binary.

An object would be preferable. Allow file system specific 
implementations to return whatever type make most sense for them.

Less optimally make it a byte array.

But whatever you do, ByteBuffer does not belong here. Most use cases for 
working with file system attributes will not need or want to use 
ByteBuffers. This coupling needs to be broken.

-- 
Elliotte Rusty Harold  elharo at metalab.unc.edu
Refactoring HTML Just Published!
http://www.amazon.com/exec/obidos/ISBN=0321503635/ref=nosim/cafeaulaitA



More information about the nio-discuss mailing list