net.ontopia.net
Class Base64Decoder

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

public class Base64Decoder
extends Object

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


Constructor Summary
Base64Decoder()
           
 
Method Summary
static int decode(char[] input, int offset, int length, byte[] output)
          INTERNAL: Decodes the characters in input to the output byte array, returning the number of bytes written.
static void decode(InputStream istream, OutputStream ostream)
          INTERNAL: Decode input stream and write result to output stream.
static String decode(String string)
          INTERNAL: Decode string and return result as a string.
static void decode(String string, OutputStream ostream)
          INTERNAL: Decode 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

Base64Decoder

public Base64Decoder()
Method Detail

decode

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

Throws:
IOException

decode

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

Throws:
IOException

decode

public static int decode(char[] input,
                         int offset,
                         int length,
                         byte[] output)
INTERNAL: Decodes the characters in input to the output byte array, returning the number of bytes written. If the output array is too short, that's just too bad.


decode

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

Throws:
IOException


Copyright © 2000-2012 Ontopia.