Java UTF8 utf8BufferByteLen(CharSequence str)

Here you can find the source of utf8BufferByteLen(CharSequence str)

Description

utf Buffer Byte Len

License

Apache License

Declaration

public static int utf8BufferByteLen(CharSequence str) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static final int UTF8_MAX_BYTES_PER_CHAR = 3;

    public static int utf8BufferByteLen(CharSequence str) {
        return str.length() * UTF8_MAX_BYTES_PER_CHAR;
    }//from  w  w w  . java  2s.  co m
}

Related

  1. stringToUTF8Bytes(String str)
  2. toBytesUTF8(String s)
  3. toBytesUTF8(String str)
  4. unZip(String zipFile, String outputFolder, boolean skipDirectory)
  5. utf8(String string)
  6. utf8ByteLength(String string)
  7. utf8BytesToString(byte[] bytes, int start, int length)
  8. utf8BytesToString(final byte[] in_utf8Bytes)
  9. utf8CharLen(byte byte1)