Java ASCII to String ascii2String(String ASCIIs)

Here you can find the source of ascii2String(String ASCIIs)

Description

ascii String

License

Apache License

Parameter

Parameter Description
ASCIIs a parameter

Declaration

public static String ascii2String(String ASCIIs) 

Method Source Code

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

public class Main {
    /**//  w w w .jav a2  s .c om
     * @param ASCIIs
     * @return
     */
    public static String ascii2String(String ASCIIs) {
        String[] ASCIIss = ASCIIs.split(",");
        StringBuffer sb = new StringBuffer();
        for (int i = 0; i < ASCIIss.length; i++) {
            sb.append((char) ascii2Char(Integer.parseInt(ASCIIss[i])));
        }
        return sb.toString();
    }

    /**
     * @param ASCII
     * @return
     */
    public static char ascii2Char(int ASCII) {
        return (char) ASCII;
    }
}

Related

  1. ascii2Str(String s)
  2. asciiBytesToChar(byte[] bytes)
  3. asciiBytesToString(byte[] val)
  4. ASCIIToChar(final int ascii)
  5. AsciiToChar(int asc)