You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Paul King (JIRA)" <ji...@apache.org> on 2016/07/22 00:20:21 UTC

[jira] [Commented] (GROOVY-7889) Add autoFlush option to IndentPrinter

    [ https://issues.apache.org/jira/browse/GROOVY-7889?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15388668#comment-15388668 ] 

Paul King commented on GROOVY-7889:
-----------------------------------

There are numerous constructors that take a {{PrintWriter}}. Is one of those not sufficient? E.g.
{code}
def ip = new IndentPrinter(new PrintWriter(System.out, true))
// use ip
{code}

> Add autoFlush option to IndentPrinter
> -------------------------------------
>
>                 Key: GROOVY-7889
>                 URL: https://issues.apache.org/jira/browse/GROOVY-7889
>             Project: Groovy
>          Issue Type: Improvement
>            Reporter: M. Justin
>            Priority: Minor
>
> It would be convenient for some usage patterns if IndentPrinter had an autoFlush option in the same manner as PrintWriter.  Specifically, if autoFlush were on, any call to either of the println methods would call flush() on the writer.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)