WX5.IO Class Reference

Serialization and compressing methods and work with FTP. More...

List of all members.

Static Public Member Functions

static byte[] ToGZip (object source)
 Serializes the obect and compresses output using GZIP compression.
static object FromGZip (Type target, byte[] source)
 Uncompresses the source and deserializes it to the object.
static string ToXML (object source)
 Serializes an object to the XML string.
static object FromXML (Type target, string source)
 Desrialises an object from the XML string.
static Stream FromFTP (FTPMode mode, string host, string folder, string file, string user, string password)
 Downloads the file from the FTP source.
static bool ToFTP (Stream source, FTPMode mode, string host, string folder, string file, string user, string password)
 Uploads the data on the FTP server.
static Stream LoadFile (string nameSpace, string fileName)
 Loads an embedded resource.
static Stream LoadFile (Type a, string nameSpace, string fileName)
 Loads an embedded resource.

Static Public Attributes

static int IOBufferSize = 32768

Detailed Description

Serialization and compressing methods and work with FTP.


Member Function Documentation

static Stream WX5.IO.FromFTP ( FTPMode  mode,
string  host,
string  folder,
string  file,
string  user,
string  password 
) [static]

Downloads the file from the FTP source.

Parameters:
mode FTP mode (active/passive)
host FTP host
folder folder on the FTP server
file file to download
user user login
password user password
Returns:
stream to save into file
static object WX5.IO.FromGZip ( Type  target,
byte[]  source 
) [static]

Uncompresses the source and deserializes it to the object.

Parameters:
target target type of the object
source byte array represented the compressed object
Returns:
uncompressed object
static object WX5.IO.FromXML ( Type  target,
string  source 
) [static]

Desrialises an object from the XML string.

Parameters:
target target type of the object
source XML serialization
Returns:
deserialized object
static Stream WX5.IO.LoadFile ( Type  a,
string  nameSpace,
string  fileName 
) [static]

Loads an embedded resource.

Parameters:
a Assembly type where resources located
nameSpace namespace of the resource
fileName resource filename
Returns:
resource as a stream
static Stream WX5.IO.LoadFile ( string  nameSpace,
string  fileName 
) [static]

Loads an embedded resource.

Parameters:
nameSpace namespace of the resource
fileName resource filename
Returns:
resource as a stream
static bool WX5.IO.ToFTP ( Stream  source,
FTPMode  mode,
string  host,
string  folder,
string  file,
string  user,
string  password 
) [static]

Uploads the data on the FTP server.

Parameters:
source data stream to upload
mode FTP mode (active/passive)
host FTP host
folder folder on the FTP server
file target file name
user user login
password user password
Returns:
Always TRUE
static byte [] WX5.IO.ToGZip ( object  source  )  [static]

Serializes the obect and compresses output using GZIP compression.

Parameters:
source object to compress
Returns:
byte array represented the compressed object
static string WX5.IO.ToXML ( object  source  )  [static]

Serializes an object to the XML string.

Parameters:
source object to serialize
Returns:
XML serialization
Generated on Wed Jun 2 01:15:47 2010 for WX Library 5.0 documentation by  doxygen 1.6.3