iNamik / java_text_tables

Text Table Library in Java
MIT License
57 stars 14 forks source link

Add more options for writing tables out #4

Closed steveash closed 7 years ago

steveash commented 7 years ago

I would like to have a Util.print method that takes a Writer or PrintWriter. Also a simple way just to render a String seems reasonable.

iNamik commented 7 years ago

Greetings!

I've replaced the PrintStream in the main output method with PrintWriter and added a few helper methods to adapt Writer, and OutputStream. I've also added asString which utilizes a StringWriter to render a String.

Please have a look and let me know your thoughts.

Thank you for your interest in my project !