Uploaded image for project: 'ShrinkWrap'
  1. ShrinkWrap
  2. SHRINKWRAP-235

Add writeTo methods to Archive

    XMLWordPrintable

    Details

    • Estimated Difficulty:
      Low

      Description

      An extremely common use case for the "toString" methods on Archive are to print the contents of the Archive to stdout.

      System.out.println(archive.toString(true));

      Having to wrap the call in System.out.println is really annoying (even with editor shortcuts). ShrinkWrap should provide parallel print methods, that print to stdout (or perhaps to an optional stream argument).

      archive.print()
      archive.print(true)
      archive.print(Formatter)

      • parallel methods that accept a stream if warranted
      • I'd also settle for printArchive()

      This feature is consistent with the ever popular Exception#printStackTrace().

      UPDATE: See comment about writeTo() proposal.

        Attachments

          Activity

            People

            Assignee:
            tommysdk Tommy Tynjä (Inactive)
            Reporter:
            dan.j.allen Dan Allen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: