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

(zipfs) Better for ZipFileAttributes.comments() to return String instead of raw byte[].

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P3 P3
    • None
    • 7
    • core-libs
    • generic
    • generic

      Better for ZipFileAttributes.comments() to return String instead of raw byte[]. That way, users don't need to convert it to String with proper Charset, which actually should have been done when createing a new zip fils system instance.

       public byte[] comment() {
              if (e.comment != null)
                  return Arrays.copyOf(e.comment, e.comment.length);
              return null;
          }

            sherman Xueming Shen
            stephenh Stephen Hu (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: