com.sshtools.j2ssh.util

Class Base64


public class Base64
extends java.lang.Object

Version:
$Revision: 1.15 $
Author:
$author$

Nested Class Summary

static class
Base64.InputStream
static class
Base64.OutputStream

Field Summary

static boolean
DECODE
static boolean
ENCODE

Method Summary

static byte[]
decode(String s)
static byte[]
decode(byte[] source, int off, int len)
static Object
decodeToObject(String encodedObject)
static String
decodeToString(String s)
static String
encodeBytes(byte[] source, boolean ignoreMaxLineLength)
static String
encodeBytes(byte[] source, int off, int len, boolean ignoreMaxLineLength)
static String
encodeObject(java.io.Serializable serializableObject)
static String
encodeString(String s, boolean ignoreMaxLineLength)
static void
main(String[] args)

Field Details

DECODE

public static final boolean DECODE
Field Value:
false

ENCODE

public static final boolean ENCODE
Field Value:
true

Method Details

decode

public static byte[] decode(String s)
Parameters:
s -
Returns:

decode

public static byte[] decode(byte[] source,
                            int off,
                            int len)

decodeToObject

public static Object decodeToObject(String encodedObject)

decodeToString

public static String decodeToString(String s)

encodeBytes

public static String encodeBytes(byte[] source,
                                 boolean ignoreMaxLineLength)

encodeBytes

public static String encodeBytes(byte[] source,
                                 int off,
                                 int len,
                                 boolean ignoreMaxLineLength)

encodeObject

public static String encodeObject(java.io.Serializable serializableObject)

encodeString

public static String encodeString(String s,
                                  boolean ignoreMaxLineLength)

main

public static void main(String[] args)

Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.