[ 
http://jira.codehaus.org/browse/DOXIA-387?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Robert Scholte updated DOXIA-387:
---------------------------------

    Attachment: DOXIA-387.patch

You're absolutely right. It's just not in my system yet, but it's getting 
better day by day :). Here's a new patch.

> Add RandomAccessSink
> --------------------
>
>                 Key: DOXIA-387
>                 URL: http://jira.codehaus.org/browse/DOXIA-387
>             Project: Maven Doxia
>          Issue Type: New Feature
>          Components: Sink API
>    Affects Versions: 1.1.2
>            Reporter: Robert Scholte
>            Priority: Minor
>             Fix For: 1.2
>
>         Attachments: DOXIA-387.patch, DOXIA-387.patch, randomaccesssink.patch
>
>
> In some cases components have to write to different parts of a page. With the 
> current implementation you can only keep appending the page.
> I've attached a new class, with which it should be possible to add subsinks 
> to which you can write at any time.
> Code might look like this
> {code}
> baseSink.text("Hello World");
> Sink top = baseSink.addSink();
> baseSink.horizontalRule();
> Sink content = baseSink.addSink();
> baseSink.text("So long, farewell");
> {code}
> After flushing the basesink, subsinks will flush to the basesink.
> Closing the basesink will close al subsinks as well.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to