2010-11-30 16:27:59 +08:00
|
|
|
module Zip
|
2013-08-30 04:50:12 +08:00
|
|
|
module NullDecompressor #:nodoc:all
|
|
|
|
extend self
|
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.
|