rubyzip/lib/zip/null_decompressor.rb

28 lines
441 B
Ruby
Raw Normal View History

module Zip
2013-06-03 02:33:03 +08:00
class NullDecompressor #:nodoc:all
include Singleton
2013-06-03 02:33:03 +08:00
def sysread(numberOfBytes = nil, buf = nil)
nil
end
2013-06-03 02:33:03 +08:00
def produce_input
nil
end
2013-06-03 02:33:03 +08:00
def input_finished?
true
end
def eof
true
end
2013-06-03 02:33:03 +08:00
alias :eof? :eof
end
end
# Copyright (C) 2002, 2003 Thomas Sondergaard
# rubyzip is free software; you can redistribute it and/or
# modify it under the terms of the ruby license.