Encoding

object Encoding

Utility functions to encode/decode byte arrays as Base64 strings.

Used internally between the protocol buffer compiler and the runtime to encode messages.

We could have used Apache Commons, but we would like to avoid an additional dependency. java.xml.bind.DataTypeConverter.parseBase64Binary is not available on Android. And the Java native java.util.Base64 is only available for Java 8...

class Object
trait Matchable
class Any

Value members

Concrete methods

def fromBase64(textInput: String): Array[Byte]
def toBase64(in: Array[Byte]): String