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)
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
.
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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:
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
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
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
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
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]
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
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
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
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
: [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
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
-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
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
30 matches
Mail list logo