You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Pascal Schumacher (JIRA)" <ji...@apache.org> on 2015/11/05 20:19:27 UTC
[jira] [Comment Edited] (GROOVY-7502) Add
org.codehaus.groovy.runtime.IOGroovyMethods.getText(ByteArrayOutputStream)
[ https://issues.apache.org/jira/browse/GROOVY-7502?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14992108#comment-14992108 ]
Pascal Schumacher edited comment on GROOVY-7502 at 11/5/15 7:19 PM:
--------------------------------------------------------------------
to quote [~keegan] from [https://github.com/apache/incubator-groovy/pull/132]
{quote:}Shouldn't there be an arg to specify what encoding to use to interpret the bytes?{quote}
I think there should a additional method which allows to specify the encoding this way.
was (Author: pascalschumacher):
to quote [~keegan] from [https://github.com/apache/incubator-groovy/pull/132]
{quote:}Shouldn't there be an arg to specify what encoding to use to interpret the bytes?{quote}
> Add org.codehaus.groovy.runtime.IOGroovyMethods.getText(ByteArrayOutputStream)
> ------------------------------------------------------------------------------
>
> Key: GROOVY-7502
> URL: https://issues.apache.org/jira/browse/GROOVY-7502
> Project: Groovy
> Issue Type: Wish
> Affects Versions: 2.4.5
> Reporter: Jochen Kemnade
> Priority: Minor
> Labels: patch-available
> Attachments: 0001-GROOVY-7502-Add-IOGroovyMethods.getText-ByteArrayOut.patch
>
>
> A {{ByteArrayOutputStream}} can be transformed to a String via {{toByteArray}}. Groovy should provide a shortcut for that.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)