XBinder C# Runtime Library
2.6
|
Classes | |
class | DecoderWriter |
A Base64.DecoderWriter will write binary data to a java.io.OutputStream , given in the constructor, while decoding the Base64 characters you write. More... | |
class | EncoderOutputStream |
A Base64.EncoderOutputStream will write character data to a java.io.Writer , given in the constructor, while encoding the bytes you write to Base64 notation. More... | |
Static Public Member Functions | |
static System.String | encodeBytes (sbyte[] source) |
Encodes a byte array into Base64 notation. Does not GZip-compress data. More... | |
static System.String | encodeBytes (sbyte[] source, int options) |
Encodes a byte array into Base64 notation. More... | |
static System.String | encodeBytes (sbyte[] source, int off, int len) |
Encodes a byte array into Base64 notation. Does not GZip-compress data. More... | |
static System.String | encodeBytes (sbyte[] source, int off, int len, int options) |
Encodes a byte array into Base64 notation. More... | |
static void | decode (char[] source, int off, int len, XBByteArray dest) |
Very low-level access to decoding characters. Does not support automatically gunzipping or any other "fancy" features. More... | |
static sbyte [] | decode (char[] source, int off, int len) |
Very low-level access to decoding characters. Does not support automatically gunzipping or any other "fancy" features. More... | |
static void | decode (System.String s, XBByteArray dest) |
Decodes data from Base64 notation More... | |
static bool | encodeToFile (sbyte[] dataToEncode, System.String filename) |
Convenience method for encoding data to a file. More... | |
Public Attributes | |
const int | NO_OPTIONS = 0 |
No options specified. Value is zero. More... | |
const int | ENCODE = 1 |
Specify encoding. More... | |
const int | DECODE = 0 |
Specify decoding. More... | |
const int | GZIP = 2 |
Specify that data should be gzip-compressed. More... | |
const int | DONT_BREAK_LINES = 8 |
Don't break lines when encoding (violates strict Base64 specification) More... | |
|
static |
Very low-level access to decoding characters. Does not support automatically gunzipping or any other "fancy" features.
source | The Base64 encoded data |
off | The offset of where to begin decoding |
len | The length of characters to decode |
dest | XBByteArray to decode into (starting at 0 offset) |
<since> 1.3 </since>
|
static |
Very low-level access to decoding characters. Does not support automatically gunzipping or any other "fancy" features.
source | The Base64 encoded data |
off | The offset of where to begin decoding |
len | The length of characters to decode |
<since> 1.3 </since>
|
static |
Decodes data from Base64 notation
s | the string to decode |
<since> 1.4 </since>
|
static |
Encodes a byte array into Base64 notation. Does not GZip-compress data.
source | The data to convert |
<since> 1.4 </since>
|
static |
Encodes a byte array into Base64 notation.
Valid options:
DONT_BREAK_LINES: don't break lines at 76 characters Note: Technically, this makes your encoding non-compliant.
Example: encodeBytes( myData, Base64.DONT_BREAK_LINES )
source | The data to convert |
options | Specified options |
<since> 2.0 </since>
|
static |
Encodes a byte array into Base64 notation. Does not GZip-compress data.
source | The data to convert |
off | Offset in array where conversion should begin |
len | Length of data to convert |
<since> 1.4 </since>
|
static |
Encodes a byte array into Base64 notation.
Valid options:
DONT_BREAK_LINES: don't break lines at 76 characters Note: Technically, this makes your encoding non-compliant.
Example: encodeBytes( myData, Base64.DONT_BREAK_LINES )
source | The data to convert |
off | Offset in array where conversion should begin |
len | Length of data to convert |
options | Specified options |
<since> 2.0 </since>
|
static |
Convenience method for encoding data to a file.
Attempts to decode Base64 data and deserialize a Java Object within. Returns null
if there was an error.
encodedObject | The Base64 data to decode |
dataToEncode | byte array of data to encode in base64 form |
filename | Filename for saving encoded data |
true
if successful, false
otherwise
<since> 2.1 </since>
const int com.objsys.xbinder.runtime.Base64.DECODE = 0 |
Specify decoding.
const int com.objsys.xbinder.runtime.Base64.DONT_BREAK_LINES = 8 |
Don't break lines when encoding (violates strict Base64 specification)
const int com.objsys.xbinder.runtime.Base64.ENCODE = 1 |
Specify encoding.
const int com.objsys.xbinder.runtime.Base64.GZIP = 2 |
Specify that data should be gzip-compressed.
const int com.objsys.xbinder.runtime.Base64.NO_OPTIONS = 0 |
No options specified. Value is zero.