Class: Origami::Filter::JBIG2

Inherits:
Object
  • Object
show all
Includes:
Origami::Filter
Defined in:
lib/origami/filters/jbig2.rb

Overview

Class representing a Filter used to encode and decode data with JBIG2 compression algorithm.

Defined Under Namespace

Classes: DecodeParms

Constant Summary

Constants included from Origami::Filter

A85, AHx, CCF, Fl, RL

Instance Method Summary collapse

Methods included from Origami::Filter

included

Constructor Details

#initialize(parameters = {}) ⇒ JBIG2

Returns a new instance of JBIG2.


37
38
39
# File 'lib/origami/filters/jbig2.rb', line 37

def initialize(parameters = {})
    super(DecodeParms.new(parameters))
end

Instance Method Details

#decode(stream) ⇒ Object

Not supported.


51
52
53
# File 'lib/origami/filters/jbig2.rb', line 51

def decode(stream)
    raise NotImplementedError.new("#{self.class} is not yet supported", input_data: stream)
end

#encode(stream) ⇒ Object

Not supported.


44
45
46
# File 'lib/origami/filters/jbig2.rb', line 44

def encode(stream)
    raise NotImplementedError.new("#{self.class} is not yet supported", input_data: stream)
end