Java Double Convert to convertDoubleConsonant(byte[] b)

Here you can find the source of convertDoubleConsonant(byte[] b)

Description

convert Double Consonant

License

LGPL

Declaration

public static void convertDoubleConsonant(byte[] b) 

Method Source Code

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

public class Main {

    public static void convertDoubleConsonant(byte[] b) {
        int len = b.length;
        if ((len & 1) == 1) {
            b[len - 1] = '\0';
            len--;/*w  w  w . j av a 2s.com*/
        }
        for (int i = 0; i < len; i += 2) {
            int high = b[i] & 0xff;
            int low = b[i + 1] & 0xff;
            if (high == '\0' || low == '\0') {
                break;
            } else if ((high == 0x24 || high == 0x25) && low == 0x43) {
                b[i + 1] = (byte) 0x44;
            }
        }
    }
}

Related

  1. convertDouble(Object param)
  2. convertDouble(String str)
  3. convertDouble(String str, double defaults)
  4. convertDouble2double(final Double[] pArray)
  5. convertDoubleArrayToString(double[] value, String separator)
  6. convertDoubleFromBytes(final byte[] bytes)
  7. convertDoubleIntoHexadecimalString(double value, int precision)
  8. convertDoubleList(Double[] list)
  9. convertDoubleMatrixToFloat(double[][] input, int dimRows, int dimColoumns)