Java UTF8 getUTF8BytesFromString(String str)

Here you can find the source of getUTF8BytesFromString(String str)

Description

get UTF Bytes From String

License

BSD License

Declaration

public static byte[] getUTF8BytesFromString(String str) 

Method Source Code

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

Related

  1. getUTF8(byte[] data, int offset, int length)
  2. getUTF8Bytes(String s)
  3. getUtf8Bytes(String s)
  4. GetUtf8Bytes(String str, boolean replace)
  5. getUTF8Bytes(String string)
  6. getUtf8Decoder()
  7. getUtf8OrDefault()
  8. getUTF8Reader(InputStream f)
  9. getUtf8String(URL url)