|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.imagero.uio.io.Base64
This class shows how simple and straightforward can be implementation of base 64 codec using BitInputStream and BitOutputStream
Constructor Summary | |
Base64()
|
Method Summary | |
static void |
base64Decode(java.io.Reader in,
java.io.OutputStream out)
decode base64 encoded character stream and write it to given OutputStream |
static byte[] |
base64Decode(java.lang.String s)
decode base 64 encoded string |
static java.lang.String |
base64Encode(byte[] b)
base 64 encode |
static void |
base64Encode(java.io.InputStream in,
java.io.Writer out)
base64 encode data from InputStream and write ict to given character stream |
static int |
getLineLength()
|
static void |
setLineLength(int lineLength)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Base64()
Method Detail |
public static int getLineLength()
public static void setLineLength(int lineLength)
public static java.lang.String base64Encode(byte[] b) throws java.io.IOException
b
- data to encode
java.io.IOException
public static void base64Encode(java.io.InputStream in, java.io.Writer out) throws java.io.IOException
in
- InputStreamout
- Writer
java.io.IOException
public static byte[] base64Decode(java.lang.String s) throws java.io.IOException
s
- String to decode
java.io.IOException
public static void base64Decode(java.io.Reader in, java.io.OutputStream out) throws java.io.IOException
in
- Reader character streamout
- OutputStream
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |