Java ASCII asciiString(byte[] bytes, int from, int count)

Here you can find the source of asciiString(byte[] bytes, int from, int count)

Description

ascii String

License

Open Source License

Declaration

public static String asciiString(byte[] bytes, int from, int count) 

Method Source Code

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

public class Main {
    public static String asciiString(byte[] bytes, int from, int count) {
        char value[] = new char[count];

        for (int i = 0; i < count; ++i)
            value[i] = (char) (bytes[i + from] & 0xff);

        return new String(value);
    }/*from   ww w .  j a v  a  2 s.co  m*/

    public static String asciiString(byte[] bytes) {
        return asciiString(bytes, 0, bytes.length);
    }
}

Related

  1. asciify(String s)
  2. asciiIdx2StrIdx(String str, int asciiIdx)
  3. asciiLength(String str)
  4. asciiPaddingR(String str, int length, String padding)
  5. asciiQuads(String word)
  6. asciiString(String fourcc)
  7. AsciiStringToString(String content)
  8. asciiToBCD(byte[] ascii, int asc_len)
  9. asciiToEbcdic(String s)