C# Class DroidExplorer.Plugins.BackupConverter

Inheritance: DroidExplorer.Core.Plugins.BasePlugin
显示文件 Open project: camalot/droidexplorer Class Usage Examples

Public Methods

Method Description
BackupConverter ( IPluginHost host ) : System

Initializes a new instance of the BackupConverter class.

ConvertTo ( ConvertType convertType, String sourceFile ) : String

Converts a backup to the specified type.

Execute ( IPluginHost pluginHost, Core currentDirectory, string args ) : void

Executes the specified plugin host.

GetExtendedHeader ( String file ) : ExtendedBackupHeader

Gets the extended header.

IsBasicBackup ( String file ) : bool

Determines whether [is basic backup] [the specified file].

IsExtendedBackup ( String file ) : bool

Determines whether [is extended backup] [the specified file].

Private Methods

Method Description
GetConvertType ( string type ) : ConvertType

Gets the type of the convert.

ReadHeaderLine ( Stream input ) : String

Reads the header line.

RemoveExtendedInfo ( string file ) : String

Removes the extended info.

WriteExtendedInfo ( string file ) : String

Writes the extended info.

WriteHeaderLine ( Stream output, String line ) : void

Writes the header line.

Method Details

BackupConverter() public method

Initializes a new instance of the BackupConverter class.
public BackupConverter ( IPluginHost host ) : System
host IPluginHost The host.
return System

ConvertTo() public method

Converts a backup to the specified type.
public ConvertTo ( ConvertType convertType, String sourceFile ) : String
convertType ConvertType Type of the convert.
sourceFile String The source file.
return String

Execute() public method

Executes the specified plugin host.
public Execute ( IPluginHost pluginHost, Core currentDirectory, string args ) : void
pluginHost IPluginHost The plugin host.
currentDirectory Core The current directory.
args string The args.
return void

GetExtendedHeader() public method

Gets the extended header.
public GetExtendedHeader ( String file ) : ExtendedBackupHeader
file String The file.
return ExtendedBackupHeader

IsBasicBackup() public method

Determines whether [is basic backup] [the specified file].
public IsBasicBackup ( String file ) : bool
file String The file.
return bool

IsExtendedBackup() public method

Determines whether [is extended backup] [the specified file].
public IsExtendedBackup ( String file ) : bool
file String The file.
return bool