예제 #1
0
        private void Dispose(bool bDisposing)
        {
            if (!bDisposed)
            {
                bDisposed = true;

                if (oChunk != null)
                {
                    oChunk.Dispose();
                    oChunk = null;
                }

                if (sText != null)
                {
                    sText.Dispose();
                    sText = null;
                }

                bHTML = null;

                if (oE != null)
                {
                    oE.Dispose();
                    oE = null;
                }

                if (oTP != null)
                {
                    oTP.Dispose();
                    oTP = null;
                }
            }
        }
예제 #2
0
        /// <summary>
        /// Inits tag parser
        /// </summary>
        /// <param name="p_oChunk"></param>
        /// <param name="p_sText"></param>
        internal void Init(HTMLparser p_oP, HTMLchunk p_oChunk, DynaString p_sText, byte[] p_bHTML, int p_iDataLength, HTMLentities p_oE, HTMLheuristics p_oHE)
        {
            oP = p_oP;
            oChunk = p_oChunk;
            sText = p_sText;
            bHTML = p_bHTML;
            iDataLength = p_iDataLength;

            // we don't want to be too close to end of data when dealing with heuristics
            iMaxHeuDataLength = iDataLength - MIN_DATA_SIZE_FOR_HEURISTICS;

            oE = p_oE;
            oHE = p_oHE;
        }
예제 #3
0
        private void Dispose(bool bDisposing)
        {
            if (!bDisposed)
            {
                bDisposed = true;

                bHTML = null;
                oChunk = null;
                sText = null;
                oE = null;
                oP = null;
            }
        }
예제 #4
0
        private void Dispose(bool bDisposing)
        {
            if(!bDisposed)
            {
                bDisposed=true;

                if(oChunk!=null)
                {
                    oChunk.Dispose();
                    oChunk=null;
                }

                if(sText!=null)
                {
                    sText.Dispose();
                    sText=null;
                }

                bHTML=null;

                if(oE!=null)
                {
                    oE.Dispose();
                    oE=null;
                }

                if(oTP!=null)
                {
                    oTP.Dispose();
                    oTP=null;
                }

            }
        }