Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4221139

DataFlavor.plainTextFlavor return StringReader

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.2.0
    • 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)
      ======================================================================

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: