Android Char to Byte Array Convert charToByte(char c)

Here you can find the source of charToByte(char c)

Description

char To Byte

Declaration

private static byte charToByte(char c) 

Method Source Code

//package com.java2s;

public class Main {
    private static byte charToByte(char c) {
        return (byte) "0123456789ABCDEF".indexOf(c);
    }//from w  ww . j  a  v  a  2 s .c  o  m
}

Related

  1. charToByte(char c)
  2. getBytes(char data)