Class: Binenc::Java::Provider
- Inherits:
-
Object
- Object
- Binenc::Java::Provider
- Includes:
- TR::CondUtils
- Defined in:
- lib/binenc/provider.rb
Class Method Summary collapse
Class Method Details
.engine_instance(*args, &block) ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/binenc/provider.rb', line 17 def self.engine_instance(*args, &block) eng = args.first if is_empty?(eng) ASN1Engine.new(*args[1..-1], &block) else case eng.to_s.downcase.to_sym when :asn1, :asn1_eng ASN1Engine.new(*args[1..-1], &block) when :bin_struct, :binstruct BinStructFactory.instance(*args, &block) else raise BinencEngineException, "Engine #{eng} is not supported" end end end |
.provider_name ⇒ Object
13 14 15 |
# File 'lib/binenc/provider.rb', line 13 def self.provider_name "Java" end |