C# Class iTextSharp.xmp.impl.Base64

A utility class to perform base64 encoding and decoding as specified in RFC-1521. See also RFC 1421. @version $Revision: 1.4 $
ファイルを表示 Open project: nonorganic/dssnet

Public Methods

Method Description
Decode ( byte src ) : byte[]

Decode the given byte[].

Decode ( string src ) : string

Decode the given string.

Encode ( byte src ) : byte[]

Encode the given byte[].

Encode ( byte src, int lineFeed ) : byte[]

Encode the given byte[].

Encode ( string src ) : string

Encode the given string.

Private Methods

Method Description
Base64 ( ) : System
GetBytes ( string str ) : byte[]
GetString ( byte bytes ) : string

Method Details

Decode() public static method

Decode the given byte[].
public static Decode ( byte src ) : byte[]
src byte /// the base64-encoded data.
return byte[]

Decode() public static method

Decode the given string.
public static Decode ( string src ) : string
src string the base64-encoded string.
return string

Encode() public static method

Encode the given byte[].
public static Encode ( byte src ) : byte[]
src byte the source string.
return byte[]

Encode() public static method

Encode the given byte[].
public static Encode ( byte src, int lineFeed ) : byte[]
src byte the source string.
lineFeed int a linefeed is added after linefeed characters; /// must be dividable by four; 0 means no linefeeds
return byte[]

Encode() public static method

Encode the given string.
public static Encode ( string src ) : string
src string the source string.
return string