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