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

specification of the writeUTF(String) refers to unknown UTFDataFormatError

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      beta2
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Not verified

      Description



      Name: vpR10011 Date: 05/21/2001



      Specification of the interface javax.imageio.stream.ImageOutputStream and
      specification of the class javax.imageio.stream.ImageOutputStreamImpl say:

      "public void writeUTF(String str) throws IOException
      ...
      First, the total number of bytes needed to represent all the characters of s
      is calculated. If this number is larger than 65535, then a UTFDataFormatError
                                                                              ^^^^^
      is thrown.
      ...
      Throws:
          UTFDataFormatError - if the UTF representation of s requires more than 65536.
                       ^^^^^
      ...".

      These specifications refers to unknown UTFDataFormatError. It might be misprint.
      If the UTF representation of the string str requires more than 65536 bytes
      writeUTF(String) throws UTFDataFormatException.



      ======================================================================

        Attachments

          Activity

            People

            Assignee:
            dricesunw Daniel Rice (Inactive)
            Reporter:
            verapsunw Verap Verap (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: