DataFlavor.plainTextFlavor return StringReader

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P4
    • None
    • Affects Version/s: 1.2.0
    • Component/s: client-libs
    • generic
    • generic



      Name: vi73552 Date: 03/17/99


      The DataFlavor "DataFlavor.plainTextFlavor" has
      a representation class "InputStream"

      BUT if i write:

      StringSelection ss = new StringSelection("Hello world!");
      InputStream is = (InputStream)ss.getTransferData(DataFlavor.plainTextFlavor);

      i get an exception because it returns a "StringReader".
      (Review ID: 55655)
      ======================================================================

            Assignee:
            David Mendenhall (Inactive)
            Reporter:
            Vassili Igouchkine (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: