Class: Origami::ExternalStream

Inherits:
Stream
  • Object
show all
Defined in:
lib/origami/stream.rb

Overview

Class representing an external Stream.

Constant Summary

Constants inherited from Stream

Stream::TOKENS

Constants included from StandardObject

StandardObject::DEFAULT_ATTRIBUTES

Constants included from Object

Object::TOKENS

Instance Attribute Summary

Attributes inherited from Stream

#dictionary

Attributes included from Object

#file_offset, #generation, #no, #objstm_offset, #parent

Instance Method Summary collapse

Methods inherited from Stream

#[], #[]=, #data, #data=, #decode!, #each_key, #encode!, #method_missing, parse, #post_build, #pre_build, #rawdata, #rawdata=, #real_type, #set_predictor, #to_obfuscated_str, #to_s, #value

Methods included from StandardObject

#do_type_check, #has_field?, included, #pdf_version_required, #pre_build, #set_default_value, #set_default_values

Methods included from Object

#<=>, #copy, #indirect_parent, #is_indirect?, parse, #pdf, #pdf_version_required, #post_build, #pre_build, #reference, #set_indirect, #set_pdf, #size, skip_until_next_obj, #solve, #to_o, #to_s, #type, typeof, #xrefs

Constructor Details

#initialize(filespec, hash = {}) ⇒ ExternalStream

Returns a new instance of ExternalStream.



392
393
394
395
396
# File 'lib/origami/stream.rb', line 392

def initialize(filespec, hash = {})

  hash[:F] = filespec
  super('', hash)
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Origami::Stream