net.ontopia.net
Class Base64Encoder

java.lang.Object
  extended by net.ontopia.net.Base64Encoder

public class Base64Encoder
extends Object

INTERNAL: This class contains methods for decoding base64 streams. Base64 decoding is described in section 6.8 of RFC 2045.


Constructor Summary
Base64Encoder()
           
 
Method Summary
static void encode(InputStream istream, OutputStream ostream)
          INTERNAL: Encode input stream and write result to output stream.
static String encode(String string)
          INTERNAL: Encode string and return result as a string.
static void encode(String string, OutputStream ostream)
          INTERNAL: Encode string and write result to output stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Base64Encoder

public Base64Encoder()
Method Detail

encode

public static String encode(String string)
                     throws IOException
INTERNAL: Encode string and return result as a string.

Throws:
IOException

encode

public static void encode(String string,
                          OutputStream ostream)
                   throws IOException
INTERNAL: Encode string and write result to output stream.

Throws:
IOException

encode

public static void encode(InputStream istream,
                          OutputStream ostream)
                   throws IOException
INTERNAL: Encode input stream and write result to output stream.

Throws:
IOException


Copyright © 2000-2012 Ontopia.