protected static String getAsciiStringFrom6BitStr ( String str ) { StringBuilder txt = new StringBuilder ( ) ; for ( int i = 0 ; i < str . length ( ) ; i = i + 6 ) { byte _byte = ( byte ) Integer . parseInt ( str . substring ( i , i + 6 ) , 2 ) ; _byte = convert6BitCharToStandardAscii ( _byte ) ; char convChar = ( char ) _byte ; if ( convChar == ' ' ) { break ; } txt . append ( ( char ) _byte ) ; } return txt . toString ( ) . trim ( ) ; }
Decode 6 bit String to standard ASCII String