> 
> Hi Dominique !
> 
> > I thought in that direction too, yet the flush() doesn't 
> seem to do the 
> > trick.
> > I just tried output.flush() before super.endDocument() and 
> after, it 
> > was called,
> >  but I'm having the same problem.
> >
> >  On 05/09/06, Bertrand Delacretaz <[EMAIL PROTECTED]> wrote:
> >  > On 9/5/06, Dominique <[EMAIL PROTECTED]> wrote:
> >  >
> >  > > ...it does not receive the last 20 bytes...
> 
> Some missing bytes next to a Cipher class sounds like a missing 
> doFinal() call to me. Not sure if you're stream 
> implementation needs a 
> doFinal() in addition to a flush ...

Think the flush() and doFinal() things are not the problem (look at the 
XMLSerializer, Dominique is doing more or less the same)

What I do not understand though, is the part:

CipherOutputStream encr_stream = new  CipherOutputStream(out, encrypter);       
super.setOutputStream(encr_stream);

Why CipherOutputStream and not just OutputStream, since super 
(AbstractSerializer) is expecting an OutputStream. Anyway, of course this won't 
solve your problem, but looks strange to me, and I do not know what your 
CipherOutputStream is. 

Think you should look at blocks/serializers, and then in particular at the 
EncodingSerializer.java. Think you should extend that one like the other 
serializers there do. 

Regards Ard

> 
> Good luck
> 
> Andreas
> 
> ___________________________________________________
> Andreas Kühne
> phone: +49 177 293 24 97
> mailto: [EMAIL PROTECTED]
> 
> Trustable
> Kirchröder Str. 70e
> 30625 Hannover
> Germany
> www.trustable.de
> 
> Kostenlose Verifikation qualifizierter elektronischer Signaturen:
> www.sig-check.de
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to