Package org.apache.felix.gogo.command
Class Base64Encoder
java.lang.Object
org.apache.felix.gogo.command.Base64Encoder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringstatic Stringencode(byte[] in, int len) Encode a raw byte array to a Base64 String.static voidencode(InputStream in, OutputStream out, int len)
-
Constructor Details
-
Base64Encoder
public Base64Encoder()
-
-
Method Details
-
base64Encode
- Throws:
IOException
-
encode
Encode a raw byte array to a Base64 String.- Parameters:
in- Byte array to encode.len- Length of Base64 lines. 0 means no line breaks.- Throws:
IOException
-
encode
- Throws:
IOException
-