Re: custom Serializer: not getting the last 20 bytes , setOutputStream

2006-09-06 Thread Dominique
hi guys, thx for the tips. I now switched to inherit from EncodingSerializer.java (in the block/serializers part). This gives me me more easy access to the flushing behaviour. I solved the problem for now by putting 25 Newline characters add the end, because after trying for hours I think I'm in

RE: custom Serializer: not getting the last 20 bytes , setOutputStream

2006-09-06 Thread Ard Schrijvers
> 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 metho

Re: custom Serializer: not getting the last 20 bytes , setOutputStream

2006-09-06 Thread Andreas Kuehne
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 ciph

RE: custom Serializer: not getting the last 20 bytes , setOutputStream

2006-09-06 Thread Ard Schrijvers
> > 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 PRO

Re: custom Serializer: not getting the last 20 bytes , setOutputStream

2006-09-06 Thread Andreas Kuehne
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

Re: custom Serializer: not getting the last 20 bytes , setOutputStream

2006-09-05 Thread 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]> wr

Re: custom Serializer: not getting the last 20 bytes , setOutputStream

2006-09-05 Thread Bertrand Delacretaz
On 9/5/06, Dominique <[EMAIL PROTECTED]> wrote: ...it does not receive the last 20 bytes... You're most probably missing a flush() call somewhere, maybe your CipherOutputStream is not auto-flushing? You can override endDocument() and do the flush there. -Bertrand

custom Serializer: not getting the last 20 bytes , setOutputStream

2006-09-05 Thread Dominique
Hi, because I need to write XML streams to binary encrypted files, I made a custom serializer, which replaces the outputStream with a CipherOutputStream, based on the code of the XMLSerializer. This seems to work, however, I got a problem: it does not receive the last 20 bytes. When decrypting th