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

          Show
          Niall Pemberton added a comment - Fixed: http://svn.apache.org/viewvc?view=revision&revision=1052161

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development