Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      It looks like we cannot convert Frame's text data to String since text frame might include a partial UTF-8 sequence. So the returned Frame.Data.Text#getText() can only return partial String, and the partial bytes from the UTF-8 char need to be combined with the next frame's bytes. So I propose to remove Frame.Data.Text#getText() and expose only byte types in the API.

      Also, instead of using so many sub-types(for e.g Frame.Data.Text.Continuation), the type hierarchy could be flattened esp if everything is dealt with bytes for frames. I don't see much value for having a separate Continuation type compared to an additional method to check whether the frame is last one or not.

        Activity

          People

          • Assignee:
            dannycoward
            Reporter:
            jitu
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Due:
              Created:
              Updated:
              Resolved: