Hi,
I'm trying to use the ChunckedIntArray to keep the line and column
number information. My plan is to have such an instance maintained by
DTMDocumentImpl, separate from the 'nodes' instance variable that this
class maintains.
I would like to use ChunckedIntArray to have a slotsize of 2 instead
of 4, as it currently uses. I see that the slotsize is defined as
final, so even though I pass the slotsize value as 2 in the
constructor, I will still get 4 ints always allocated. Does it do any
harm removing the final modifier from slotsize and having it modified
in the constructor? I think the impact would not be that great, and
the flexibility we gain is bigger.
Along the same lines, I'd like to add few new methods:
appendSlot(int w0, int w1)
(maybe) appendSlot(int[] slot) - the general case
writeSlot(int position, int w0, int w1)
(maybe) writeSlot(int position, int[] slot) - the general case
Is it OK to proceed with these changes?
Thanks,
--
Ovidiu Predescu <[EMAIL PROTECTED]>
http://orion.nsr.hp.com/ (inside HP's firewall only)
http://www.geocities.com/SiliconValley/Monitor/7464/ (GNU, Emacs, other stuff)