|
Secure iNet Factory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jscape.inet.util.Base64
public class Base64
Implements methods for encoding and decoding using base64 algorithm.
Constructor Summary | |
---|---|
Base64()
|
Method Summary | |
---|---|
byte[] |
decode(char[] data)
Decodes data from base64 format. |
char[] |
encode(byte[] data)
Encodes data to base64 format. |
int |
getLineLength()
Gets maximum line length when encoding data. |
void |
setLineLength(int lineLength)
Sets maximum line length when encoding data. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Base64()
Method Detail |
---|
public char[] encode(byte[] data)
encode
in interface Codec
data
- the data to encode
public byte[] decode(char[] data)
decode
in interface Codec
data
- the data to decode
public void setLineLength(int lineLength)
lineLength
- maximume line lengthpublic int getLineLength()
|
Secure iNet Factory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |