示例#1
0
        private HtmlParser parser; //This will be used to extract links after the conversion

        #endregion Fields

        #region Constructors

        /// <summary>
        /// The constructor is private so that only the class itself can create an instance.
        /// </summary>
        private SwfParser()
        {
            //Initialize the synchronization mechanism
            mutex=new Mutex();
            //Initialize the Encoding
            encoding = Encoding.UTF8;//GetEncoding("ISO-8859-7");
            //Initialize the converters and parsers
            converter = new CSwf2HtmlConverterClass();
            parser = HtmlParser.Instance();
            //Get a reference to the global variables and application settings
            globals = Globals.Instance();
        }
示例#2
0
        private const string supportedContentType = "application/x-shockwave-flash"; //The Content Type supported by the parser

        #endregion

        #region Constructor and Singleton Instance members

        /// <summary>
        /// The constructor is private so that only the class itself can create an instance.
        /// </summary>
        private SwfParser()
        {
            //Initialize the synchronization mechanism
            mutex = new Mutex();
            //Initialize the Encoding
            encoding = Encoding.UTF8;            //GetEncoding("ISO-8859-7");
            //Initialize the converters and parsers
            converter = new CSwf2HtmlConverterClass();
            parser    = HtmlParser.Instance();
            //Get a reference to the global variables and application settings
            globals = Globals.Instance();
        }