Class RadArchivePackage
Inheritance
Inherited Members
Namespace: Telerik.WinControls.Serialization
Assembly: Telerik.WinControls.dll
Syntax
public class RadArchivePackage
Constructors
RadArchivePackage()
Declaration
public RadArchivePackage()
RadArchivePackage(RadArchiveStream[])
Declaration
public RadArchivePackage(params RadArchiveStream[] streamInfos)
Parameters
RadArchiveStream[]
streamInfos
|
Fields
throwException
Declaration
public bool throwException
Field Value
System.Boolean
|
Properties
DefaultFormat
Gets the default format for this package.
Declaration
protected virtual PackageFormat DefaultFormat { get; }
Property Value
PackageFormat
|
Format
Gets or sets the format used to persist the package.
Declaration
public PackageFormat Format { get; set; }
Property Value
PackageFormat
|
Streams
Gets the list which contains the streams of this package.
Declaration
public List<RadArchiveStream> Streams { get; }
Property Value
System.Collections.Generic.List<RadArchiveStream>
|
Methods
Compress()
Declaration
public Stream Compress()
Returns
System.IO.Stream
|
Compress(String)
Declaration
public bool Compress(string fileName)
Parameters
System.String
fileName
|
Returns
System.Boolean
|
Decompress(Stream)
Decompresses the stream using Binary format.
Declaration
public static RadArchivePackage Decompress(Stream stream)
Parameters
System.IO.Stream
stream
|
Returns
RadArchivePackage
|
Decompress(Stream, Type)
Declaration
public static RadArchivePackage Decompress(Stream stream, Type type)
Parameters
System.IO.Stream
stream
|
System.Type
type
|
Returns
RadArchivePackage
|
Decompress(String)
Decompresses the stream in the provided file using Binary format.
Declaration
public static RadArchivePackage Decompress(string fileName)
Parameters
System.String
fileName
|
Returns
RadArchivePackage
|
Decompress(String, Type)
Declaration
public static RadArchivePackage Decompress(string fileName, Type type)
Parameters
System.String
fileName
|
System.Type
type
|
Returns
RadArchivePackage
|
SaveToStreamCore(Int32)
Declaration
protected virtual Stream SaveToStreamCore(int byteCount)
Parameters
System.Int32
byteCount
|
Returns
System.IO.Stream
|
ShouldSerializeFormat()
Declaration
public bool ShouldSerializeFormat()
Returns
System.Boolean
|
ShouldSerializeStreams()
Declaration
public bool ShouldSerializeStreams()
Returns
System.Boolean
|