Uploaded image for project: 'Maven Doxia'
  1. Maven Doxia
  2. DOXIA-387

Add RandomAccessSink

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.1.2
    • 1.3
    • Core
    • None

    Description

      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

      baseSink.text("Hello World");
      Sink top = baseSink.addSink();
      baseSink.horizontalRule();
      Sink content = baseSink.addSink();
      baseSink.text("So long, farewell");
      

      After flushing the basesink, subsinks will flush to the basesink.
      Closing the basesink will close al subsinks as well.

      Attachments

        1. randomaccesssink.patch
          15 kB
          Robert Scholte
        2. DOXIA-387.patch
          19 kB
          Robert Scholte
        3. DOXIA-387.patch
          24 kB
          Robert Scholte

        Activity

          People

            rfscholte Robert Scholte
            rfscholte Robert Scholte
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: