Java Convert via ByteBuffer toLMBCS(final String value)

Here you can find the source of toLMBCS(final String value)

Description

to LMBCS

License

Apache License

Declaration

public static ByteBuffer toLMBCS(final String value) 

Method Source Code

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

import java.nio.ByteBuffer;

import java.nio.charset.Charset;

public class Main {
    public static ByteBuffer toLMBCS(final String value) {
        Charset lmbcs = Charset.forName("x-lmbcs-1");
        return lmbcs.encode(value);
    }/* ww w .  j  a va  2s  . com*/
}

Related

  1. toIntArray(final byte[] byteArray)
  2. toIntArray(float[] floatArray)
  3. toIntBuffer(int[] array)
  4. toIntFromByteArray(byte[] byteArray)
  5. toLittleEndian(int value)
  6. toLong(byte data[])
  7. toLong(byte[] array)
  8. toLong(byte[] bytes)
  9. toLongArray(byte[] b)