return result;
}
protected static void writeTransactionStream( ChannelBuffer dest,
TransactionStream transactionStream ) throws IOException
{
<BUG>final Collection<ReadableByteChannel> channels = transactionStream.getChannels();

dest.writeByte( channels.size() );

for ( ReadableByteChannel channel : channels )

{
ByteData data = new ByteData( channel );
</BUG>
dest.writeInt( data.size() );

return result;
}
protected static void writeTransactionStream( ChannelBuffer dest,
TransactionStream transactionStream ) throws IOException
{
Collection<Pair<Long, ReadableByteChannel>> channels = transactionStream.getChannels();
dest.writeInt( channels.size() );
for ( Pair<Long, ReadableByteChannel> channel : channels )
{
dest.writeLong( channel.first() );
ByteData data = new ByteData( channel.other() );
dest.writeInt( data.size() );
