# File referrercop.rb, line 273
  def self.filter(input, output = $stdout)
    begin
      case input_type(input)
        when :apache_combined
          $stderr.puts "Input type: Apache combined log file" if $VERBOSE
          filter_apache_combined(input, output)

        when :awstats
          $stderr.puts "Input type: AWStats data file" if $VERBOSE
          filter_awstats(input, output)

        when :text
          $stderr.puts "Input type: Text" if $VERBOSE
          filter_text(input, output)
      end

    rescue => e
      abort("Error: #{e}")
    end
  end