Inheritance: Lucene.Net.Support.ThreadClass
Example #1
0
        public virtual System.IO.StreamReader GetReader()
        {
            if (pipeIn == null)
            {
                pipeInStream  = new MyPipedInputStream();
                pipeOutStream = new System.IO.StreamWriter(pipeInStream.BaseStream);
                pipeIn        = new System.IO.StreamReader(pipeInStream.BaseStream, System.Text.Encoding.GetEncoding("UTF-16BE"));
                pipeOut       = new System.IO.StreamWriter(pipeOutStream.BaseStream, System.Text.Encoding.GetEncoding("UTF-16BE"));

                SupportClass.ThreadClass thread = new ParserThread(this);
                thread.Start();                 // start parsing
            }

            return(pipeIn);
        }
Example #2
0
        public virtual System.IO.StreamReader GetReader()
        {
            if (pipeIn == null)
            {
                pipeInStream = new MyPipedInputStream(this, new System.IO.StreamReader(new System.IO.MemoryStream(1024)));
                pipeOutStream = new System.IO.StreamWriter(pipeInStream.BaseStream);
                pipeIn = new System.IO.StreamReader(pipeInStream.BaseStream, System.Text.Encoding.Default);
                pipeOut = new System.IO.StreamWriter(pipeOutStream.BaseStream, System.Text.Encoding.Default);
				
                SupportClass.ThreadClass thread = new ParserThread(this);
                thread.Start(); // start parsing
            }
			
            return pipeIn;
        }
Example #3
0
		public virtual System.IO.StreamReader GetReader()
		{
			if (pipeIn == null)
			{
				pipeInStream = new MyPipedInputStream();
				pipeOutStream = new System.IO.StreamWriter(pipeInStream.BaseStream);
				pipeIn = new System.IO.StreamReader(pipeInStream.BaseStream, System.Text.Encoding.GetEncoding("UTF-16BE"));
				pipeOut = new System.IO.StreamWriter(pipeOutStream.BaseStream, System.Text.Encoding.GetEncoding("UTF-16BE"));
				
				ThreadClass thread = new ParserThread(this);
				thread.Start(); // start parsing
			}
			
			return pipeIn;
		}