commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] Commented: (COMPRESS-59) ArchiveEntry could have toString methods for formatting header contents
Date Fri, 27 Mar 2009 22:28:50 GMT

    [ https://issues.apache.org/jira/browse/COMPRESS-59?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12690129#action_12690129
] 

Sebb commented on COMPRESS-59:
------------------------------

If users want different information, they can code it themselves.

But having no String representations at all means everyone will need to do the same or similar
work, which seems very wasteful.

Seems to me it's going to be a common need.

> ArchiveEntry could have toString methods for formatting header contents
> -----------------------------------------------------------------------
>
>                 Key: COMPRESS-59
>                 URL: https://issues.apache.org/jira/browse/COMPRESS-59
>             Project: Commons Compress
>          Issue Type: Improvement
>            Reporter: Sebb
>            Priority: Minor
>
> I think it would be useful if the ArchiveEntry interface had some methods for formatting
the entry information as a String.
> This could then be used to create an Archive scanner to list archive contents, for example.
> There should probably be two methods:
> toShortString() - shows name, type and size only.
> toLongString() - shows all the details.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message