Class: Rant::Archive::Rubyzip::ZipStreamableDirectory
- Defined in:
- lib/rant/archive/rubyzip.rb
Overview
:nodoc:all
Constant Summary
Constants inherited from ZipEntry
Rant::Archive::Rubyzip::ZipEntry::CDIR_ENTRY_STATIC_HEADER_LENGTH, Rant::Archive::Rubyzip::ZipEntry::CENTRAL_DIRECTORY_ENTRY_SIGNATURE, Rant::Archive::Rubyzip::ZipEntry::DEFLATED, Rant::Archive::Rubyzip::ZipEntry::LOCAL_ENTRY_SIGNATURE, Rant::Archive::Rubyzip::ZipEntry::LOCAL_ENTRY_STATIC_HEADER_LENGTH, Rant::Archive::Rubyzip::ZipEntry::STORED
Instance Attribute Summary
Attributes inherited from ZipEntry
#comment, #compressed_size, #compression_method, #crc, #externalFileAttributes, #extra, #fstype, #localHeaderOffset, #name, #size, #zipfile
Instance Method Summary collapse
- #get_input_stream(&aProc) ⇒ Object
-
#initialize(entry) ⇒ ZipStreamableDirectory
constructor
A new instance of ZipStreamableDirectory.
- #write_to_zip_output_stream(aZipOutputStream) ⇒ Object
Methods inherited from ZipEntry
#<=>, #==, #cdir_header_size, #directory?, #file?, #get_raw_input_stream, #local_entry_offset, #local_header_size, #next_header_offset, #parent_as_string, read_c_dir_entry, #read_c_dir_entry, read_local_entry, #read_local_entry, #time, #time=, #to_s, #write_c_dir_entry, #write_local_entry
Constructor Details
#initialize(entry) ⇒ ZipStreamableDirectory
Returns a new instance of ZipStreamableDirectory.
1301 1302 1303 |
# File 'lib/rant/archive/rubyzip.rb', line 1301 def initialize(entry) super(entry) end |
Instance Method Details
#get_input_stream(&aProc) ⇒ Object
1305 1306 1307 1308 |
# File 'lib/rant/archive/rubyzip.rb', line 1305 def get_input_stream(&aProc) return yield(NullInputStream.instance) if block_given? NullInputStream.instance end |
#write_to_zip_output_stream(aZipOutputStream) ⇒ Object
1310 1311 1312 |
# File 'lib/rant/archive/rubyzip.rb', line 1310 def write_to_zip_output_stream(aZipOutputStream) aZipOutputStream.put_next_entry(self) end |