C# Class Serenity.Web.SwfInfo

Copyright (c)2006 by Koistya `Navin - http://navin.biz 1.0.0 Koistya `Navin [email protected]

This is a small utility class which is used to determine the basic data from an SWF file header.

Exibir arquivo Open project: volkanceylan/Serenity

Public Methods

Method Description
LoadSwf ( Stream stream ) : void

Loads SWF file from a stream and checks it. Warning: As it uses a BinaryReader, it closes the stream afterwards.

SwfInfo ( Stream stream ) : System

Creates a SwfInfo object for specified stream.

SwfInfo ( string filename ) : System

Creates a SwfInfo object for specified file.

Private Methods

Method Description
ReadAllBytesFromStream ( Stream stream, byte buffer ) : int

Reads all bytes from a stream and returns number of bytes read.

Method Details

LoadSwf() public method

Loads SWF file from a stream and checks it. Warning: As it uses a BinaryReader, it closes the stream afterwards.
public LoadSwf ( Stream stream ) : void
stream Stream /// Stream.
return void

SwfInfo() public method

Creates a SwfInfo object for specified stream.
public SwfInfo ( Stream stream ) : System
stream Stream /// Stream (required). This stream is closed by SwfInfo object!
return System

SwfInfo() public method

Creates a SwfInfo object for specified file.
public SwfInfo ( string filename ) : System
filename string /// Filename (required).
return System