@Test public void testAsUnicodeChars() { byte[] testStringArray = new byte[] {0x74, 0x61, 0x6A, 0x6F}; TextDatum test = new TextDatum(testStringArray); assertArrayEquals(new char[] {'t', 'a', 'j', 'o'}, test.asUnicodeChars()); testStringArray = new byte[] {(byte) 0xED, (byte) 0x83, (byte) 0x80, (byte) 0xEC, (byte) 0xA1, (byte) 0xB0}; test = new TextDatum(testStringArray); assertArrayEquals(new char[] {'\ud0c0', '\uc870'}, test.asUnicodeChars()); }
@Override public char[] asUnicodeChars() { return StringUtils.convertBytesToChars(bytes, DEFAULT_CHARSET); }
TextDatum extends Datum { @Override public char[] asUnicodeChars() { return StringUtils.convertBytesToChars(bytes, DEFAULT_CHARSET); } }
TextDatum extends Datum { @Override public char[] asUnicodeChars() { return StringUtils.convertBytesToChars(bytes, DEFAULT_CHARSET); } TextDatum(byte[] bytes);  TextDatum(String string); }
TextDatum extends Datum { @Override public char[] asUnicodeChars() { return StringUtils.convertBytesToChars(bytes, DEFAULT_CHARSET); } TextDatum(byte[] bytes);  TextDatum(String string); @Override boolean asBool(); @Override byte asByte(); @Override short asInt2(); @Override int asInt4(); @Override long asInt8(); @Override float asFloat4(); @Override double asFloat8(); @Override byte[] asByteArray(); @Override String asChars(); @Override char[] asUnicodeChars(); @Override byte[] asTextBytes(); @Override int size(); @Override int compareTo(Datum datum); @Override boolean equals(Object obj); @Override Datum equalsTo(Datum datum); @Override int hashCode(); @Override String toString(); }
TextDatum extends Datum { @Override public char[] asUnicodeChars() { return StringUtils.convertBytesToChars(bytes, DEFAULT_CHARSET); } TextDatum(byte[] bytes);  TextDatum(String string); @Override boolean asBool(); @Override byte asByte(); @Override short asInt2(); @Override int asInt4(); @Override long asInt8(); @Override float asFloat4(); @Override double asFloat8(); @Override byte[] asByteArray(); @Override String asChars(); @Override char[] asUnicodeChars(); @Override byte[] asTextBytes(); @Override int size(); @Override int compareTo(Datum datum); @Override boolean equals(Object obj); @Override Datum equalsTo(Datum datum); @Override int hashCode(); @Override String toString(); static final Charset DEFAULT_CHARSET; static final int UNICODE_CHAR_BITS_NUM; static final TextDatum EMPTY_TEXT; static final Comparator<byte[]> COMPARATOR; }