Re: custom serializer

2009-05-13 Thread Joerg Heinicke
The idea is to have a pipeline that creates the ZIP file. This would be the one that matches the user's request. In the XML for the ZIP archive serializer you list the files you want to be included in the ZIP file. By using cocoon:/ pseudo protocol this can be another (maybe internal)

Re: custom serializer

2009-05-13 Thread Rainer Pruy
Hi sac, probably you might start out with looking at the implementation of plain XMLSerializer[1]. There it should be obvious how SAX events get serialized to String (actually there they will get streamed out to an OutputStream, but it is a start for sure I guess, you would try, serializing

Re: custom serializer

2009-05-12 Thread saeid itune
. ZipArchiveSerializer example was not helpfull for me thanks Hi Can you please let us know what the exact issue is? Regards Sac On Mon, May 11, 2009 at 7:26 PM, saeid itune saeidit...@gmail.com wrote: Hi, I am trying to create a custom serializer for apache cocoon. the objective

Re: custom serializer

2009-05-12 Thread Joerg Heinicke
In which way not helpful? Is ZIP the wrong compression for you or did you just not get it to work? Joerg On 12.05.2009 07:53, saeid itune wrote: Basically i have xml file which it will be compressed and the result will be displayed to the user in compressed format. i want to get whole xml

custom serializer

2009-05-11 Thread saeid itune
Hi, I am trying to create a custom serializer for apache cocoon. the objective of the serializer is to encode the xml data which will be used for flash devices. so i need to take whole xml data in to a string and encode the string and return the output for the user. i have looked at the code

Re: custom serializer

2009-05-11 Thread Derek Hohls
See: http://www.opensubscriber.com/message/users@cocoon.apache.org/4985156.html On 2009/05/11 at 09:14, in message b69d73200905110014p1eec673bq145b4a0ab95f3...@mail.gmail.com, saeid itune saeidit...@gmail.com wrote: Hi, I am trying to create a custom serializer for apache cocoon

custom serializer

2009-05-11 Thread saeid itune
Hi, I am trying to create a custom serializer for apache cocoon. the objective of the serializer is to encode the xml data which will be used for flash devices. so i need to take whole xml data in to a string and encode the string and return the output for the user. i have looked at the code

Re: custom serializer

2009-05-11 Thread sac sha
Hi Can you please let us know what the exact issue is? Regards Sac On Mon, May 11, 2009 at 7:26 PM, saeid itune saeidit...@gmail.com wrote: Hi, I am trying to create a custom serializer for apache cocoon. the objective of the serializer is to encode the xml data which will be used

Re: NullPointerException while running a custom serializer

2006-11-13 Thread Edward S
transformer returns invalid xml? Try do it with a normal xml serializer, if this one works, your problem might be your serializer (mail the code), otherwise, I would look for the problem in the include ArdAll,I am trying to run a pipeline that ends with a custom serializer written by me.When I run

RE: NullPointerException while running a custom serializer

2006-11-12 Thread Ard Schrijvers
Perhaps the include transformer returns invalid xml? Try do it with a normal xml serializer, if this one works, your problem might be your serializer (mail the code), otherwise, I would look for the problem in the include Ard All, I am trying to run a pipeline that ends with a custom

NullPointerException while running a custom serializer

2006-11-10 Thread Edward S
All, I am trying to run a pipeline that ends with a custom serializer written by me. When I run the pipeline w/o a transformer in between, it runs without any errors and gives back the expected result. However, when I do include a transformer in between, it gives me this 'NullPointerException

RE: Custom Serializer

2006-09-27 Thread Geert Josten
You should begin from this http://cocoon.apache.org/2.1/introduction.html The Apache Cocoon Project based at Apache Excalubur Project. Any Cocoon components are Avalon Components. http://excalibur.apache.org/developing/introduction.html If you need a simple example you can ask me. You

RE: Custom Serializer

2006-09-27 Thread Sumedh Shirodkar
thats what I did actually. Used the ZipArchiveSerializer and modified it. thanks guys!!! -S. From: Geert Josten [EMAIL PROTECTED] Reply-To: users@cocoon.apache.org To: users@cocoon.apache.org,George V. Prascharuk [EMAIL PROTECTED] Subject: RE: Custom Serializer Date: Wed, 27 Sep 2006 20

Custom Serializer

2006-09-26 Thread Sumedh Shirodkar
All, I am a novice in the Cocoon space but have been programming in Java for quite some time now. Was going thru the Cocoon docs/tutorials on the cocoon.apache.org website to get acquainted with Cocoon. However, couldnt find material that specifies how to write a custom serializer. Can

Re: Custom Serializer

2006-09-26 Thread George V. Prascharuk
material that specifies how to write a custom serializer. Can anyone point me to a location in space(web), which has a good tutorial on writing a custom serializer. I have the util methods ready for my serializer to work, however I cant figure how to process the SAX events. thanks

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-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 PROTECTED] wrote:

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 method of the

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

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

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

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]

Custom Serializer with InputSource

2005-08-25 Thread holger . willenborg
Hi, I want to implement a custom serializer. The product I want to integrate requires a - a java.io.Reader, - a java.io.InputStreamReader or - an org.xml.sax.InputSource The product (DataVision) usually reads an XML file from a stream and I want it to take input from Cocoon

Re: AW: Writing custom Serializer that accepts parameters?

2003-12-13 Thread Upayavira
Marco Rolappe wrote: -Ursprungliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Auftrag von Andrzej Jan Taramina Gesendet: Samstag, 13. Dezember 2003 02:43 An: Marco Rolappe Cc: [EMAIL PROTECTED] Betreff: Re: AW: Writing custom Serializer that accepts parameters? Marco

Re: Writing custom Serializer that accepts parameters?

2003-12-13 Thread Sylvain Wallez
Andrzej Jan Taramina wrote: Is it possible to write a custom serializer that accepts sitemap parameters? For example, if I had a serializer set to the type mySerializer, I want to do this in a sitemap: map:serializer type=mySerializer map:parameter name=someName value=someValue

SOLVED: Writing custom Serializer that accepts parameters?

2003-12-13 Thread Andrzej Jan Taramina
Is it possible to write a custom serializer that accepts sitemap parameters? Turns out that you can't really do this till 2.1.2, but the capability exists with 2.1.3. With some help from Marco Rolappe, I patched some of the 2.1.2 classes (AbstractProcessingPipeline and SerializeNode), made my

AW: Writing custom Serializer that accepts parameters?

2003-12-12 Thread Marco Rolappe
: [EMAIL PROTECTED] Betreff: Writing custom Serializer that accepts parameters? Is it possible to write a custom serializer that accepts sitemap parameters? For example, if I had a serializer set to the type mySerializer, I want to do this in a sitemap: map:serializer type=mySerializer

Re: AW: Writing custom Serializer that accepts parameters?

2003-12-12 Thread Andrzej Jan Taramina
for me. sitemap parameters are only provided to SiteMapModel implementing sitemap components, which AFAIK is not supported for Reader's prior to cocoon 2.1. I'm using a custom Serializer (not a Reader) and am on Cocoon 2.1.2 right now. So does that mean I should be able to get ahold of sitemap

AW: Writing custom Serializer that accepts parameters?

2003-12-12 Thread Marco Rolappe
-Ursprungliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Auftrag von Andrzej Jan Taramina Gesendet: Samstag, 13. Dezember 2003 02:43 An: Marco Rolappe Cc: [EMAIL PROTECTED] Betreff: Re: AW: Writing custom Serializer that accepts parameters? Marco: sitemap

Custom Serializer

2003-09-10 Thread Lionel Crine
Hi all, I'd like to know if it is possible to specify a content-type and a content-disposition of an http header into a serializer. What I'm trying to do is to create a serialization eating XML SAX and sending to XML Document to the browser web BUT Iinstrad of displaying the document, I want