Servertec Codecs
Documentation
Conventions
Command Line
Java API
AccessLogEntry
Codecs
DString
ErrorLogEntry
EventLogEntry
iws
Logger
ServletManager
Utils

Servlet API
Servlets
Config Files
Classes
Directory Tree

Return

 

java.lang.Object
 |
 +--stec.net.Codecs

public final class Codecs

Methods for encoding/decoding text.

Methods

Method Description
base64Decode Decodes the specified Base64 encoded string or byte array.

base64Decode

Decodes the specified Base64 encoded string or byte array.

Syntax

public final static static String base64Decode(String string)
public final static static byte[] base64Decode(byte[] bytearray)

Parameters

string the Base64 encoded string to decode.
bytearray the Base64 encoded array of bytes to decode.

Returns

String the decoded string.
byte[] the decoded array of bytes.

Throws

Nothing

Example

String message = Codecs.base64Decode(encodedMessage);
 top of page
Copyright © 1998-2005 Servertec. All rights reserved.
Privacy Statement.
Last Modified: Mon Sep 05 14:25:46 EDT 2005