On Mon, Feb 04, 2002 at 11:59:28AM -0500, Tavin Cole wrote: <> > But the way I use Bucket.size(), the value I want is the total buffer > size (i.e. after it's filled). I don't see why you wouldn't want it > that way. If you've partially filled it and you want to know how much, > count the bytes yourself.
Yeah, but dude, if you don't like an Interface you should change it, not abuse it. And your interface where size() returns the size of an allocated buffer is clearly not the one that FileBucket implements. > > How do you handle restart after DNV's in InternalClient without > > resetWrite()? > > The FSBucket semantics effectively imply a resetWrite() call immediately > before getOutputStream(). > > What would be a bitch to implement would be making it append if you > don't call resetWrite(). And I don't believe that's needed anywhere in > our codebase anyway (i.e., we always want to resetWrite()). It could be hacked in by simply wrapping the lower level OutputStream with one that overrides close(). -- Oskar Sandberg oskar at freenetproject.org _______________________________________________ Devl mailing list Devl at freenetproject.org http://lists.freenetproject.org/mailman/listinfo/devl
