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

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Won't Fix
    • Priority: P3
    • None
    • Affects Version/s: 7
    • Component/s: 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;
          }

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: