XStream
  1. XStream
  2. XSTR-166

Ability to get at underlying HierarchicalStreamReader/Writer implementations

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      There are many requests being made to bypass the reader/writer abstractions and there are a lot of cases where it makes sense. Although using the reader/writer interfaces ensures compatability with all backing streams, sometimes it's necessary to do stream specific stuff.

      Here are some examples of things Converters could do if they could use reader/writer implementation specific details:

      • Copy an existing XML Element to/from the stream.
      • Write non XMLy syntax (for instance a YAML ListConverter could use square brackets).

      I think it's acceptable that converters should be able to cast the Reader/Writer implementation to the necessary type. However, this is not possible at the moment as the Reader/Writer is shielded behind a decorator that provides the XPath tracking.

        People

        • Assignee:
          Unassigned
          Reporter:
          Joe Walnes
        • Votes:
          0 Vote for this issue
          Watchers:
          0 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved: