Method: Zip::ZipEntry#write_to_zip_output_stream

Defined in:
lib/ruby_archive/handlers/rubyzip/zip/zip.rb

#write_to_zip_output_stream(aZipOutputStream) ⇒ Object

:nodoc:all



827
828
829
830
831
832
833
834
835
836
# File 'lib/ruby_archive/handlers/rubyzip/zip/zip.rb', line 827

def write_to_zip_output_stream(aZipOutputStream)  #:nodoc:all
  if @ftype == :directory
    aZipOutputStream.put_next_entry(self)
  elsif @filepath
    aZipOutputStream.put_next_entry(self)
    get_input_stream { |is| IOExtras.copy_stream(aZipOutputStream, is) } 
  else
    aZipOutputStream.copy_raw_entry(self)
  end
end