-
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;
}
public byte[] comment() {
if (e.comment != null)
return Arrays.copyOf(e.comment, e.comment.length);
return null;
}