cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Kuehne <>
Subject Re: custom Serializer: not getting the last 20 bytes , setOutputStream
Date Wed, 06 Sep 2006 09:08:53 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 

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 ...

A call to flush() is not sufficient.



Andreas Kühne
phone: +49 177 293 24 97

Kirchröder Str. 70e
30625 Hannover

Kostenlose Verifikation qualifizierter elektronischer Signaturen:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message