Java UTF8 ConvertUTF8(byte[] buffer)

Here you can find the source of ConvertUTF8(byte[] buffer)

Description

Convert UTF

License

Open Source License

Declaration

public static java.lang.String ConvertUTF8(byte[] buffer) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static java.lang.String ConvertUTF8(byte[] buffer) {
        return new String(buffer, java.nio.charset.StandardCharsets.UTF_8);
    }//w w w  .j ava 2s.  c om

    public static java.lang.String ConvertUTF8(
            java.util.ArrayList<Byte> buffer) {
        byte[] buf = new byte[(int) buffer.size()];
        for (int i = 0; i < buf.length; i++) {
            buf[i] = buffer.get(i);
        }

        return new String(buf, java.nio.charset.StandardCharsets.UTF_8);
    }
}

Related

  1. codeListToString(List utf8CodeList)
  2. codesToString(int[] utf8Codes)
  3. codeToString(int utf8Code)
  4. compareWithGold(String goldfile, String outputfile)
  5. convertISO8859_1_to_UTF_8(String s)
  6. createFileAndExport(String inputFileName, String outputFileName, String outputStr)
  7. createFromUTF8String(DatagramPacket packet, String str)
  8. createTemporaryOutputFolder()
  9. decodePayloadFromUtf8(String utf8string)