classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] FYI: ByteBuffer in CORBA streams.


From: Meskauskas Audrius
Subject: [cp-patches] FYI: ByteBuffer in CORBA streams.
Date: Tue, 31 May 2005 22:08:11 +0200

No, the ByteBuffer seems not suitable here because it does not know
how to grow. Of course, I can implement the code, forcing it to grow
(need to catch an exception on the multiple put() methods), but why
should we spend time implementing another ByteArrayOutputStream
when we already have one.
In addition, the ByteBuffer is handled very differently from the
tandem ByteArrayOutputStream-DataOutputStream, a lot of well working methods must be altered, with the high risk to introduce multiple new bugs. It is better to direct the available time for increasing
reliability and implementing the missing features.

The Little Endian stream should be as fast as the existing
Big Endian stream as they both are based on the same
shift operations.
Despite the ByteBuffer seems a good and interesting class, perhaps I
will not start altering the working implementation so dramatically.

Regards
Audrius.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]