Package se.digg.dgc.encoding
Class Base45.Encoder
- java.lang.Object
-
- se.digg.dgc.encoding.Base45.Encoder
-
-
Field Summary
Fields Modifier and Type Field Description static Base45.Encoder
ENCODER
Static encoder instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
encode(byte[] src)
Encodes the supplied bytes into its Base45 encoding.String
encodeToString(byte[] src)
Encodes the supplied bytes into its corresponding Base45 string.
-
-
-
Field Detail
-
ENCODER
public static final Base45.Encoder ENCODER
Static encoder instance.
-
-
Method Detail
-
encode
public byte[] encode(byte[] src)
Encodes the supplied bytes into its Base45 encoding.- Parameters:
src
- the bytes to encode- Returns:
- an allocated byte array holding the Base45 encoding
-
encodeToString
public String encodeToString(byte[] src)
Encodes the supplied bytes into its corresponding Base45 string.- Parameters:
src
- the bytes to encode- Returns:
- a Base45 string
-
-