Add print() convenience methods to ObjectStreamPrinter. Add some tweaks to main() to allow reading from stdin and for labeling when multiple files are processed.
--------- - [x] I confirm that I make this contribution in accordance with the [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai). ------------- Commit messages: - Add print() convenience methods to ObjectStreamPrinter. Tweaks to main(). Changes: https://git.openjdk.org/jdk/pull/33291/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=33291&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8394084 Stats: 73 lines in 1 file changed: 66 ins; 0 del; 7 mod Patch: https://git.openjdk.org/jdk/pull/33291.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/33291/head:pull/33291 PR: https://git.openjdk.org/jdk/pull/33291
