public abstract class ByteTranslator
extends java.lang.Object
Constructor and Description |
---|
ByteTranslator() |
Modifier and Type | Method and Description |
---|---|
abstract java.lang.String |
translate(byte[] bytes)
Translate a byte array into a String.
|
abstract byte[] |
translate(java.lang.String s)
Translate a string into a byte array.
|
public abstract byte[] translate(java.lang.String s) throws java.io.IOException
s
- the string.java.io.IOException
- wrapping any underlying exceptionpublic abstract java.lang.String translate(byte[] bytes) throws java.io.IOException
bytes
- the byte array.java.io.IOException
- wrapping any underlying exception