Package org.eclipse.ecf.core.util
Class Base64
- java.lang.Object
- 
- org.eclipse.ecf.core.util.Base64
 
- 
 public class Base64 extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description Base64()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]decode(String encoded)static byte[]decodeFromCharArray(byte[] data)This method decodes the byte array in base 64 encoding into a char array Base 64 encoding has to be according to the specification given by the RFC 1521 (5.2).static Stringencode(byte[] bytes)static byte[]encodeToCharArray(byte[] data)This method encodes the byte array into a char array in base 64 according to the specification given by the RFC 1521 (5.2).
 
- 
- 
- 
Method Detail- 
decodeFromCharArraypublic static byte[] decodeFromCharArray(byte[] data) This method decodes the byte array in base 64 encoding into a char array Base 64 encoding has to be according to the specification given by the RFC 1521 (5.2).- Parameters:
- data- the encoded byte array
- Returns:
- the decoded byte array
 
 - 
encodeToCharArraypublic static byte[] encodeToCharArray(byte[] data) This method encodes the byte array into a char array in base 64 according to the specification given by the RFC 1521 (5.2).- Parameters:
- data- the encoded char array
- Returns:
- the byte array that needs to be encoded
 
 - 
encodepublic static String encode(byte[] bytes) 
 - 
decodepublic static byte[] decode(String encoded) 
 
- 
 
-