cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ard Schrijvers" <a.schrijv...@hippo.nl>
Subject RE: custom Serializer: not getting the last 20 bytes , setOutputStream
Date Wed, 06 Sep 2006 09:12:23 GMT

> Hi Ard !
> 
> >  Think the flush() and doFinal() things are not the problem 
> (look at 
> > the XMLSerializer, Dominique is doing more or less the same)
> 
> Still think so! Made a giant effort and took a look at the doc :
> 
> public void close() :
> ...
> This method invokes the doFinal method of the encapsulated cipher 
> object, which causes any bytes buffered by the encapsulated 
> cipher to be 
> processed.
> ...
> 
> So if we don't call close() on the stream, the necessary 
> doFinal() will 
> not be called. As we are not allowed to call close(), maybe it's a 
> workaround to call doFinal() on the underrlying Cipher object. But 
> that's a wierd hack ...

Sounds pretty convincing! If only Dominique could post wether it works :-) 

Ard

> 
> A call to flush() is not sufficient.
> 
> Greetings
> 
> Andreas
> > 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message