@Test public void testGetBytes() throws Exception { final String s = "/]'23']324;32,4p9j;ret"; final HexString sHex = HexString.fromString(s); Assert.assertTrue(Objects.areEqual(s, sHex.getOriginal(), null)); Assert.assertTrue(Objects.areEqual(Bytes.hexToBytes(sHex), sHex.getOriginal().getBytes(), ByteArrayEqualizer.getInstance())); }
@Nonnull public byte[] getBytes() { return this.hex.getBytes(Charset.forName("UTF-8")); }
HexString implements java.io.Serializable, Comparable<HexString>, CharSequence { @Nonnull public byte[] getBytes() { return this.hex.getBytes(Charset.forName("UTF-8")); } }
HexString implements java.io.Serializable, Comparable<HexString>, CharSequence { @Nonnull public byte[] getBytes() { return this.hex.getBytes(Charset.forName("UTF-8")); } private  HexString(@Nonnull String hex, @Nonnull String original); private  HexString(@Nonnull CharSequence hex, @Nonnull String original); }
HexString implements java.io.Serializable, Comparable<HexString>, CharSequence { @Nonnull public byte[] getBytes() { return this.hex.getBytes(Charset.forName("UTF-8")); } private  HexString(@Nonnull String hex, @Nonnull String original); private  HexString(@Nonnull CharSequence hex, @Nonnull String original); @Nonnull static HexString fromString(@Nonnull String value); @Nonnull static HexString fromHexString(@Nonnull CharSequence hex); @Nonnull static HexString fromBytes(@Nonnull byte[] bytes); @Nonnull static HexString fromHexBytes(@Nonnull byte[] hexBytes); @Nonnull static HexString newEmpty(); @Nonnull String toString(); @Nonnull String getHex(); @Nonnull String getOriginal(); @Override int length(); @Override char charAt(int index); @Override HexString subSequence(int start, int end); @Override int compareTo(HexString that); @Nonnull HexString concat(@Nonnull HexString that); @Override boolean equals(Object o); @Override int hashCode(); boolean isEmpty(); @Nonnull byte[] getBytes(); @Nonnull byte[] getOriginalBytes(); @Nonnull HexString substring(int beginIndex, int endIndex); @Nonnull HexString substring(int beginIndex); }
HexString implements java.io.Serializable, Comparable<HexString>, CharSequence { @Nonnull public byte[] getBytes() { return this.hex.getBytes(Charset.forName("UTF-8")); } private  HexString(@Nonnull String hex, @Nonnull String original); private  HexString(@Nonnull CharSequence hex, @Nonnull String original); @Nonnull static HexString fromString(@Nonnull String value); @Nonnull static HexString fromHexString(@Nonnull CharSequence hex); @Nonnull static HexString fromBytes(@Nonnull byte[] bytes); @Nonnull static HexString fromHexBytes(@Nonnull byte[] hexBytes); @Nonnull static HexString newEmpty(); @Nonnull String toString(); @Nonnull String getHex(); @Nonnull String getOriginal(); @Override int length(); @Override char charAt(int index); @Override HexString subSequence(int start, int end); @Override int compareTo(HexString that); @Nonnull HexString concat(@Nonnull HexString that); @Override boolean equals(Object o); @Override int hashCode(); boolean isEmpty(); @Nonnull byte[] getBytes(); @Nonnull byte[] getOriginalBytes(); @Nonnull HexString substring(int beginIndex, int endIndex); @Nonnull HexString substring(int beginIndex);  }