C# Class AODL.Package.ODFPackage

Summary for ODFPackage.
Datei anzeigen Open project: monsterlabs/HumanRightsTracker

Public Properties

Property Type Description
ODFContentXML string
ODFManifestXML string
ODFMetaXML string
ODFSettingsXML string
ODFStylesXML string

Public Methods

Method 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

Method Description
GetEntryByName ( string entryName ) : ZipEntry

Gets the name of the entry by.

Method Details

AbortPackageUpdate() public method

Aborts the package update.
public AbortPackageUpdate ( ) : void
return void

AddEntryFromMemoryStream() public method

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

BeginUpdate() public method

Begins the update.
public BeginUpdate ( ) : void
return void

Close() public method

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
return void

CommitChanges() public method

Commits the changes.
public CommitChanges ( ) : void
return void

GetStreamByName() public method

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

Load() public method

Loads the specified odf file.
public Load ( string odfFile ) : void
odfFile string The odf file.
return void

ODFPackage() public method

Initializes a new instance of the ODFPackage class.
public ODFPackage ( ) : System
return System

ODFPackage() public method

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

Property Details

ODFContentXML public_oe static_oe property

public static string ODFContentXML
return string

ODFManifestXML public_oe static_oe property

public static string ODFManifestXML
return string

ODFMetaXML public_oe static_oe property

public static string ODFMetaXML
return string

ODFSettingsXML public_oe static_oe property

public static string ODFSettingsXML
return string

ODFStylesXML public_oe static_oe property

public static string ODFStylesXML
return string