[
https://issues.apache.org/jira/browse/DIRMINA-489?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12615877#action_12615877
]
Mark Webb commented on DIRMINA-489:
-----------------------------------
Rich,
I have integrated the code into the version 2.0 baseline (trunk). I am working
on some more tests and and trying to figure out the optimal way to create a
simple CompositeByteArray containing a bunch of IoBuffers that contain strings.
Here is some pseudo-code:
CompositeByteArray cba = new CompositeByteArray();
IoBuffer one = IoBuffer.wrap("Hello");
cba.put( one );
IoBuffer two = IoBuffer.wrap("Mina");
cba.put( two );
IoBuffer three = IoBuffer.wrap("World");
cba.put( three );
System.out.println( cba );
I would like to see the contents of all 3 IoBuffers printed out together. Of
course this simple example would be expanded to include more testing, but I
have tried a couple different scenarios on putting multiple IoBuffers into an
instance of the CompositeByteArray and have been unsuccessful in getting a
single buffer back out.
Is maybe CompositeByteArray not the correct class?
Thanks
> Composite IoBuffer
> ------------------
>
> Key: DIRMINA-489
> URL: https://issues.apache.org/jira/browse/DIRMINA-489
> Project: MINA
> Issue Type: New Feature
> Components: Core
> Reporter: David M. Lloyd
> Fix For: 2.0.0-M3
>
> Attachments: mina-composite-20080515.patch.gz,
> mina-composite-20080517.patch, mina-composite-20080521-2.patch,
> mina-composite-20080521.patch
>
>
> Provide a way to create a large IoBuffer from several smaller IoBuffers,
> without copying the underlying data.
> It would probably be acceptable to constrain the composite buffer in various
> ways, for example by disallowing autoexpanding or otherwise changing the
> capacity, the implementation could be greatly simplified.
> The goal is to be able to process large messages with a minimum of copying.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.