C# Class DroidExplorer.Plugins.BackupConverter

Inheritance: DroidExplorer.Core.Plugins.BasePlugin
Afficher le fichier Open project: camalot/droidexplorer Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

ConvertTo() public méthode

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.
Résultat String

Execute() public méthode

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.
Résultat void

GetExtendedHeader() public méthode

Gets the extended header.
public GetExtendedHeader ( String file ) : ExtendedBackupHeader
file String The file.
Résultat ExtendedBackupHeader

IsBasicBackup() public méthode

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

IsExtendedBackup() public méthode

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