@Test public void testSimpleByteTranslator() throws Exception { ByteTranslator b = new SimpleByteTranslator(); String uniq = new GuidGenerator().getUUID(); byte[] bytes = b.translate(uniq); String result = b.translate(bytes); assertEquals(uniq, result); }
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);  }