Commons IO
  1. Commons IO
  2. IO-258

XmlStreamReader consumes the stream during encoding detection

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0.1
    • Component/s: Streams/Writers
    • Labels:
      None

      Description

      XmlStreamReader reads the underlying InputStream to try and detect the encoding. However once that process is done the bytes read from the stream should still be available to be read - this was accidentally broken in r1004882 by creating the underlying reader with the original InputStream, rather than the wrapped streams used to detect encoding.

        Issue Links

          Activity

          Henri Yandell made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Mark Thomas made changes -
          Workflow jira [ 12540846 ] Default workflow, editable Closed status [ 12601903 ]
          Niall Pemberton made changes -
          Link This issue relates to IO-162 [ IO-162 ]
          Niall Pemberton made changes -
          Field Original Value New Value
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Niall Pemberton created issue -

            People

            • Assignee:
              Niall Pemberton
              Reporter:
              Niall Pemberton
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development