Here you can find the source of getStringFromUTF8Bytes(byte[] utf8Bytes)
public static String getStringFromUTF8Bytes(byte[] utf8Bytes)
//package com.java2s; /* OOOGG - Object-Oriented OGG Container * Copyright (c) 2016, Allan Taborda/*w ww .j av a 2s .c o m*/ * This software is distributed under the BSD 3-Clause license. * See https://github.com/allantaborda/ooogg/blob/master/LICENSE for more details. */ import static java.nio.charset.StandardCharsets.UTF_8; public class Main { public static String getStringFromUTF8Bytes(byte[] utf8Bytes) { return new String(utf8Bytes, UTF_8); } }