Here you can find the source of getUTF8BytesFromString(String str)
public static byte[] getUTF8BytesFromString(String str)
//package com.java2s; /* OOOGG - Object-Oriented OGG Container * Copyright (c) 2016, Allan Taborda/*w w w .j a va2 s .c om*/ * 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 byte[] getUTF8BytesFromString(String str) { return str.getBytes(UTF_8); } }