Add Javadoc mode to documentation formatter.

This required changing the output to be built up in a list and
then output at the end rather than just printed.

Bug: 35793879
Test: Ran format_supported_algorithm_table.py
Change-Id: I720a1884f77f455de00b6f6aa601ea2f6a2005a5
2 files changed