List of utility methods to do Char Array to String
CharSequence | charArrayToCharSequence(final char[] charArray) char Array To Char Sequence return new StringBuilder().append(charArray == null ? new char[0] : charArray); |
String | charArrayToString(char[] ch, String separator) char Array To String StringBuffer sb = new StringBuffer(); for (int i = 0; i < ch.length; i++) { sb.append(ch[i]); if (ch.length != (i + 1)) { sb.append(separator); return sb.toString(); ... |
String | charArrayToString(char[] input, int offset, int length, int maxChars) Converts a subset of a character array to a String representation. StringBuffer buf = new StringBuffer(); boolean inHex = false; if (length < 0) { length = input.length; } else { length = offset + length; if (length > input.length) { ... |
String | charArrayToString(Character[] chars) char Array To String String result = ""; for (Character character : chars) { result += character.toString(); return result; |
String | charArrayToXml(char[] input, int offset, int length) Converts a subset of a character array to XML string format. StringBuffer buf = new StringBuffer(); if (length < 0) { length = input.length; } else { length = offset + length; if (length > input.length) { length = input.length; ... |
String | charsToString(char[] chars) Converts a binary zero terminated char-array to a string. int lastBinZero = chars.length - 1; while (lastBinZero >= 0 && chars[lastBinZero] == 0) { lastBinZero--; return new String(chars, 0, lastBinZero + 1); |
String | charsToString(char[] chars) chars To String StringBuilder sb = new StringBuilder(chars.length); for (int i = 0; i < chars.length; i++) { sb.append(chars[i]); return sb.toString(); |