Java Byte Array to Char bytesToChar(byte[] arr, int offset)

Here you can find the source of bytesToChar(byte[] arr, int offset)

Description

bytes To Char

License

Open Source License

Declaration

public static char bytesToChar(byte[] arr, int offset) 

Method Source Code

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

public class Main {
    public static char bytesToChar(byte[] arr, int offset) {
        return (char) ((arr[offset] << 8) | arr[offset + 1]);
    }//  www .  j  a va 2 s . c  o m
}

Related

  1. bufferToChar(byte[] ioBuffer)
  2. bytesToChar(byte[] arr, int pos)
  3. bytesToChar(byte[] b)
  4. bytesToChar(byte[] bytes)
  5. bytesToChar(byte[] bytes)