C# Class AODL.Package.ODFPackage

Summary for ODFPackage.
Afficher le fichier Open project: monsterlabs/HumanRightsTracker

Méthodes publiques

Свойство Type Description
ODFContentXML string
ODFManifestXML string
ODFMetaXML string
ODFSettingsXML string
ODFStylesXML string

Méthodes publiques

Méthode Description
AbortPackageUpdate ( ) : void

Aborts the package update.

AddEntryFromMemoryStream ( MemoryStream memoryStream, string entryName ) : void

Adds the entry from memory stream.

BeginUpdate ( ) : void

Begins the update.

Close ( ) : void

Closes this ODFPackage. If this package has changes they will be commited and saved. If you have done changes to the package and won't save them use the AbortPackageUpdate() method before calling Close().

CommitChanges ( ) : void

Commits the changes.

GetStreamByName ( string entryName ) : MemoryStream

Gets the name of the stream by.

Load ( string odfFile ) : void

Loads the specified odf file.

ODFPackage ( ) : System

Initializes a new instance of the ODFPackage class.

ODFPackage ( string odfFile ) : System

Initializes a new instance of the ODFPackage class.

Private Methods

Méthode Description
GetEntryByName ( string entryName ) : ZipEntry

Gets the name of the entry by.

Method Details

AbortPackageUpdate() public méthode

Aborts the package update.
public AbortPackageUpdate ( ) : void
Résultat void

AddEntryFromMemoryStream() public méthode

Adds the entry from memory stream.
public AddEntryFromMemoryStream ( MemoryStream memoryStream, string entryName ) : void
memoryStream MemoryStream The memory stream.
entryName string Name of the entry.
Résultat void

BeginUpdate() public méthode

Begins the update.
public BeginUpdate ( ) : void
Résultat void

Close() public méthode

Closes this ODFPackage. If this package has changes they will be commited and saved. If you have done changes to the package and won't save them use the AbortPackageUpdate() method before calling Close().
public Close ( ) : void
Résultat void

CommitChanges() public méthode

Commits the changes.
public CommitChanges ( ) : void
Résultat void

GetStreamByName() public méthode

Gets the name of the stream by.
public GetStreamByName ( string entryName ) : MemoryStream
entryName string Name of the entry.
Résultat MemoryStream

Load() public méthode

Loads the specified odf file.
public Load ( string odfFile ) : void
odfFile string The odf file.
Résultat void

ODFPackage() public méthode

Initializes a new instance of the ODFPackage class.
public ODFPackage ( ) : System
Résultat System

ODFPackage() public méthode

Initializes a new instance of the ODFPackage class.
public ODFPackage ( string odfFile ) : System
odfFile string The odf file.
Résultat System

Property Details

ODFContentXML public_oe static_oe property

public static string ODFContentXML
Résultat string

ODFManifestXML public_oe static_oe property

public static string ODFManifestXML
Résultat string

ODFMetaXML public_oe static_oe property

public static string ODFMetaXML
Résultat string

ODFSettingsXML public_oe static_oe property

public static string ODFSettingsXML
Résultat string

ODFStylesXML public_oe static_oe property

public static string ODFStylesXML
Résultat string