Java UTF8 getStringFromUTF8Bytes(byte[] utf8Bytes)

Here you can find the source of getStringFromUTF8Bytes(byte[] utf8Bytes)

Description

get String From UTF Bytes

License

BSD License

Declaration

public static String getStringFromUTF8Bytes(byte[] utf8Bytes) 

Method Source Code

//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);
    }
}

Related

  1. generateRawUTF8Bytes(final String string)
  2. getBytesUtf8(final String string)
  3. getFile(String outputFolder, String fileName)
  4. getFiles(String InputFilePath)
  5. getOutputFromCommand(boolean print, List command)
  6. getUtf8()
  7. getUTF8()
  8. getUtf8()
  9. getUTF8(byte[] data, int offset, int length)