Beagrep.Filters.FilterText.DoOpen C# (CSharp) Метод

DoOpen() защищенный Метод

protected DoOpen ( FileInfo file ) : void
file System.IO.FileInfo
Результат void
        protected override void DoOpen(FileInfo file)
        {
            // Extremely large files of type text/plain are usually log files,
                        // data files, or other bits of not-particularly-human-readable junk
                        // that will tend to clog up our indexes.
                        if (file.Length > LENGTH_CUTOFF) {
                                Beagrep.Util.Logger.Log.Debug ("{0} is too large to filter!", file.FullName);
                                Error ();
                                return;
                        }

                        buf = new char [BUFSIZE];
                        if (sourceCodeTagsMode) {

                                if (file.FullName.Contains(" ")) {
                                        Beagrep.Util.Logger.Log.Debug ("{0} is not source code since path contains space!", file.FullName);
                                        Error();
                                        return;
                                }
                                ctagsInput.Write(file.FullName + "\n");
                                ctagsInput.Flush();
                                filepath = file.FullName;
                        }
        }