private String bytesToString ( byte [ ] bytes , int offset , int length ) throws UnsupportedEncodingException , StringIndexOutOfBoundsException { return new String ( bytes , offset , length , encoding ) ; }
The function to convert a sub - range of an array of bytes into a string .