@Test public void testHexstringByteTranslator() throws Exception { ByteTranslator b = new HexStringByteTranslator(); byte[] uniq = new GuidGenerator().getUUID().getBytes(StandardCharsets.UTF_8); assertTrue(MessageDigest.isEqual(uniq, b.translate(b.translate(uniq)))); }
public abstract byte[] translate(String s) throws IOException;
ByteTranslator { public abstract byte[] translate(String s) throws IOException; }
ByteTranslator { public abstract byte[] translate(String s) throws IOException; ByteTranslator(); }
ByteTranslator { public abstract byte[] translate(String s) throws IOException; ByteTranslator(); abstract byte[] translate(String s); abstract String translate(byte[] bytes); }
ByteTranslator { public abstract byte[] translate(String s) throws IOException; ByteTranslator(); abstract byte[] translate(String s); abstract String translate(byte[] bytes);  }