Fix UTF-16 encoding text flavors in DocFlavor

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P3
    • 1.4.0
    • Affects Version/s: 1.4.0
    • Component/s: client-libs
    • None
    • 2d
    • beta
    • sparc
    • solaris_7

      The javax.print.DocFlavor class pre-defines types for text data
      streams encoded as UTF-16 and UTF-16-LE and equates UTF-16 to UTF-16BE.
      This is certainly ambiguous, and probably incorrect.

      We should explicitly add the UTF-16BE text cases.
      This is a small number of predefined constants in the inner
      classes of DocFlavor.java.

      Additionally all the constants & strings should be of the form
      utf-16be NOT utf-16-be.

      This part of the fix needs to be applied to existing utf-16-le entries
      which will become utf-16le.

            Assignee:
            Philip Race
            Reporter:
            Philip Race
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: