Searched refs:UTF_16 (Results 1 – 10 of 10) sorted by relevance
80 return StringUtils.getBytesUnchecked(string, CharEncoding.UTF_16); in getBytesUtf16()233 return StringUtils.newString(bytes, CharEncoding.UTF_16); in newStringUtf16()
88 public static final String UTF_16 = "UTF-16"; field in CharEncoding
99 public static final Charset UTF_16 = Charset.forName("UTF-16"); field in Charsets
19 import static com.google.common.base.Charsets.UTF_16;342 assertEquals(Optional.of(UTF_16),412 .addEqualityGroup(MediaType.create("text", "plain").withCharset(UTF_16))
80 public static final String UTF_16 = "UTF-16"; field in HTTP
61 assertEquals(Charset.forName("UTF-16"), Charsets.UTF_16); in testUtf16()
60 private static final Charset UTF_16 = Charset.forName("UTF-16"); field in ByteStringTest134 ByteString byteString = ByteString.copyFrom(testString, UTF_16); in testCopyFrom_StringEncoding()135 byte[] testBytes = testString.getBytes(UTF_16); in testCopyFrom_StringEncoding()
516 Charsets.UTF_16,
351 byte[] expected = Arrays.copyOfRange("r\u00C9sum\u00C9".getBytes(Charsets.UTF_16), 2, 14); in testNewDataOutput_writeChars()
4017 field public static final java.lang.String UTF_16 = "UTF-16";