TemplatePackage Members

The TemplatePackage type exposes the following members.
Constructors

  NameDescription
Public methodTemplatePackage
Create a new (empty) package.
Back to Top
Methods

  NameDescription
Public methodAddFile(String)
Add a file to the package. This function uses the filepath of the path as the internal name.
Public methodAddFile(String, String)
Add a file to the package.
Public methodStatic memberCreate(String, TemplatePackageManifest, IEnumerable String )
Create an unencrypted package in one step using the default compression option (=Maximum).
Public methodStatic memberCreate(String, TemplatePackageManifest, IEnumerable String , String)
Create a package in one step using the default compression option (=Maximum).
Public methodStatic memberCreate(String, TemplatePackageManifest, IEnumerable String , String, CompressionOption)
Create a package in one step.
Public methodStatic memberCreateKey
Create a new RSA public/private key pair serialized as XML.
Public methodStatic memberDecrypt
A helper function to convert an encrypted HotDocs package stream to an unencrypted HotDocs package stream.
Public methodStatic memberEncrypt
A helper function to convert an unencrypted HotDocs package stream to an encrypted HotDocs package stream.
Public methodOnlineEquals
Determines whether the specified OnlineObject is equal to the current OnlineObject.
(Inherited from OnlineObject.)
Public methodStatic memberExtract(String, String, TemplatePackageManifest , IEnumerable String  )
Extract an unencrypted package in one step.
Public methodStatic memberExtract(String, String, String, TemplatePackageManifest , IEnumerable String  )
Extract a package in one step.
Public methodStatic memberExtractAllFiles
Extract a package in one step, treating the manifest like any other file.
Public methodExtractFile(String)
Extract an existing file.
Public methodExtractFile(String, String)
Extract an existing file.
Public methodFileExists
Check if a file exists in the package.
Public methodGetFiles 
Get a list of all file names stored in the package. These are internal names. E.g. "template.rtf" or "images/icon.png".
Public methodGetFiles(Boolean)
Get a list of all file names stored in the package. These are internal names. E.g. "template.rtf" or "images/icon.png".
Public methodOnlineGetHashCode
Serves as a hash function for a particular type.
(Inherited from OnlineObject.)
Public methodStatic memberGetPublicKeyOf
Get the public RSA key serialized as XML from a RSA public/private key pair serialized as XML.
Public methodOnlineGetType
Gets the OnlineType of the current instance.
(Inherited from OnlineObject.)
Public methodStatic memberIsPublicOnlyKey
Determine if the RSA key is only a public key.
Public methodStatic memberIsValidKey
Check if a string represents a valid RSA key serialized as XML.
Public methodIsValidManifest(String )
Check if the current manifest (property 'Manifest') is valid for the current files in the package.
Public methodIsValidManifest(TemplatePackageManifest, String )
Check if a given manifest is valid for the current files in the package.
Public methodOpen(String)
Open an unencrypted package
Public methodOpen(Stream, String)
Open a package from a byte stream.
Public methodOpen(String, String)
Open a package from a file.
Public methodRemoveFile
Remove an existing file.
Public methodSave 
Save the package unencrypted to a file. This function only works if Open has been called before and it uses the same file path again.
Public methodSave(String)
Save the package to a file. This function only works if Open has been called before and it uses the same file path again.
Public methodSaveAs(String)
Save the package unencrypted to a file.
Public methodSaveAs(String, String)
Save the package to a file.
Public methodOnlineToString
Returns a string that represents the current object.
(Inherited from OnlineObject.)
Back to Top
Fields

  NameDescription
Public fieldStatic memberManifestName
The internal name of the manifest file. It will be automatically created if the Manifest property has been set upon saving the package. When opening a package, this manifest will be used to initialize the Manifest property.
Back to Top
Properties

  NameDescription
Public propertyCurrentCompression
Set/get the current compression level. It will be used in the AddFile and Create functions. Default is 'Maximum'.
Public propertyCurrentPath
Returns the current path, i.e. the file path used in the Open function. If Open hasn't been called, return null.
Public propertyIsNew
Returns true if the package is new, i.e. Open hasn't been called.
Public propertyManifest
Get or set the current manifest for the package
Public propertyManifestXml
Get or set the current manifest from an XML string
Back to Top
See Also