com.migcomponents.migbase64
Class Base64IO

java.lang.Object
  extended by com.migcomponents.migbase64.Base64IO

public class Base64IO
extends Object

Base64 for InputStream
Licence = BSD

Author:
shamilbi shamilbi@users.sourceforge.net
See Also:
Base64

Constructor Summary
Base64IO()
           
 
Method Summary
static void encode(InputStream in, OutputStream out, boolean lineSep)
          Encodes a raw InputStream into a BASE64 OutputStream representation in accordance with RFC 2045.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Base64IO

public Base64IO()
Method Detail

encode

public static final void encode(InputStream in,
                                OutputStream out,
                                boolean lineSep)
                         throws IOException
Encodes a raw InputStream into a BASE64 OutputStream representation in accordance with RFC 2045. This implementation was inspired by MIG Base64 Base64.encodeToByte(byte[], boolean)

Parameters:
in -
out -
lineSep - Optional "\r\n" after 76 characters, unless end of file.
No line separator will be in breach of RFC 2045 which specifies max 76 per line but will be a little faster.
Throws:
IOException


Copyright © Aug 2004–2014 Mikael Grev. All rights reserved.