Uploaded image for project: 'Commons IO'
  1. Commons IO
  2. IO-258

XmlStreamReader consumes the stream during encoding detection

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0
    • 2.0.1
    • Streams/Writers
    • 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.

      Attachments

        Issue Links

          Activity

            People

              niallp Niall Pemberton
              niallp Niall Pemberton
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: