Java ASCII from toAsciiString(byte[] output)

Here you can find the source of toAsciiString(byte[] output)

Description

to Ascii String

License

Apache License

Declaration

public static String toAsciiString(byte[] output) 

Method Source Code

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

public class Main {
    public static String toAsciiString(byte[] output) {
        char[] chars = new char[output.length];
        for (int i = 0; i < output.length; i++) {
            chars[i] = (char) output[i];
        }/* w  w w. j  a  va2 s.  c om*/
        return new String(chars);
    }
}

Related

  1. toAsciiLowerCase(char ch)
  2. toAsciiString(byte[] buffer)
  3. toAsciiString(byte[] buffer, int startPos, int length)
  4. toAsciiString(byte[] bytes)
  5. toASCIIString(byte[] data)
  6. toAsciiString(String s)
  7. toAsciiString(String value)
  8. toASCIIUpperCase(byte b)
  9. toASCIIUpperCase(String s)