Class: BMFF::FileContainer
- Inherits:
-
Object
- Object
- BMFF::FileContainer
- Includes:
- Box::Container
- Defined in:
- lib/bmff/file_container.rb
Overview
vim: set expandtab tabstop=2 shiftwidth=2 softtabstop=2 autoindent:
Instance Attribute Summary
Attributes included from Box::Container
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(io) ⇒ FileContainer
constructor
A new instance of FileContainer.
Methods included from Box::Container
#add_child, #container?, #find, #find_all, #parse_children, #select_descendants
Constructor Details
#initialize(io) ⇒ FileContainer
Returns a new instance of FileContainer.
8 9 10 |
# File 'lib/bmff/file_container.rb', line 8 def initialize(io) @source_stream = io end |
Class Method Details
.parse(io) ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'lib/bmff/file_container.rb', line 12 def self.parse(io) io.extend(BMFF::BinaryAccessor) container = self.new(io) until io.eof? container.add_child BMFF::Box.get_box(io, container) end return container end |