cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sylvain Wallez <sylv...@apache.org>
Subject Re: [C3] StAX research reveiled!
Date Sat, 27 Dec 2008 23:42:29 GMT
Sylvain Wallez wrote:

<snip/>

> class Pipeline {
>    Generator generator;
>    Transformer transformers[];
>    XMLStreamWriter serializer;
>
>    void execute() {
>        Generator last = generator;
>        for (Transformer tr : transformers) {
>            tr.setInput(new StaxFIFO(previous);
Should be of course "tr.setInput(new StaxFIFO(last));" -- Thunderbird 
doesn't do Java syntax check ;-)
>            last = tr;
>        }
>
>        // Pull from the whole chain to the serializer
>        while(last.hasNext()) {
>            last.pull(serializer);
>        }
>    }
> }

Sylvain

-- 
Sylvain Wallez - http://bluxte.net


Mime
View raw message