2010-11-30 16:27:59 +08:00
|
|
|
module Zip
|
2013-06-03 02:33:03 +08:00
|
|
|
class NullDecompressor #:nodoc:all
|
2010-11-30 16:27:59 +08:00
|
|
|
include Singleton
|
2013-06-03 02:33:03 +08:00
|
|
|
|
2010-11-30 16:27:59 +08:00
|
|
|
def sysread(numberOfBytes = nil, buf = nil)
|
|
|
|
nil
|
|
|
|
end
|
2013-06-03 02:33:03 +08:00
|
|
|
|
2010-11-30 16:27:59 +08:00
|
|
|
def produce_input
|
|
|
|
nil
|
|
|
|
end
|
2013-06-03 02:33:03 +08:00
|
|
|
|
2010-11-30 16:27:59 +08:00
|
|
|
def input_finished?
|
|
|
|
true
|
|
|
|
end
|
|
|
|
|
|
|
|
def eof
|
|
|
|
true
|
|
|
|
end
|
2013-06-03 02:33:03 +08:00
|
|
|
|
2010-11-30 16:27:59 +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.
|