Beispiel #1
0
        public override void Open()
        {
            if (this.inputStream != null)
            {
                throw new TwitterReaderException("Stream already open.");
            }

            inputStream       = new FileStream(filename, FileMode.Open, FileAccess.Read);
            inputStreamReader = new TwitterStreamReader(inputStream);
        }
Beispiel #2
0
        private void InitializeMembers()
        {
            this.inputCompressed   = false;
            this.inputStream       = null;
            this.inputStreamReader = null;

            this.writeDump        = false;
            this.dumpCompressed   = true;
            this.dumpLocation     = null;
            this.dumpLineMax      = -1;
            this.dumpTimeMax      = -1;
            this.dumpTimeStart    = DateTime.MinValue;
            this.dumpLineCount    = -1;
            this.dumpStream       = null;
            this.dumpZipStream    = null;
            this.dumpStreamWriter = null;

            this.lastReceived = DateTime.MinValue;
        }