[ 
https://issues.apache.org/jira/browse/AVRO-393?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12829362#action_12829362
 ] 

Thiruvalluvan M. G. commented on AVRO-393:
------------------------------------------

While at it, it will be useful to add another constructor that takes a 
sub-array:

Utf8(byte[] bytes, int start, int len);

> byte[] constructor for Utf8 desired
> -----------------------------------
>
>                 Key: AVRO-393
>                 URL: https://issues.apache.org/jira/browse/AVRO-393
>             Project: Avro
>          Issue Type: New Feature
>            Reporter: Jeff Hodges
>            Assignee: Jeff Hodges
>            Priority: Minor
>             Fix For: 1.3.0
>
>         Attachments: byte_utf8.patch
>
>
> We've come across a few use cases where we know that a given byte array is 
> properly Utf8 encoded, but Utf8 has no constructor to take it. Instead, we 
> have to turn it into a String first just to have it swapped back. This is 
> sucky.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to