Module: RBzip2::Java

Extended by:
Adapter
Defined in:
lib/facter/util/rbzip2-0.3.0/lib/rbzip2/java.rb

Overview

This code is free software; you can redistribute it and/or modify it under the terms of the new BSD License.

Copyright © 2013, Sebastian Staudt

Defined Under Namespace

Classes: Compressor, Decompressor

Class Method Summary collapse

Methods included from Adapter

available?, extended

Class Method Details

.initObject



8
9
10
11
12
13
14
15
16
# File 'lib/facter/util/rbzip2-0.3.0/lib/rbzip2/java.rb', line 8

def self.init
  begin
    require 'java'
    include_package 'org.apache.commons.compress.compressors.bzip2'
    BZip2CompressorOutputStream
  rescue LoadError, NameError
    @@available = false
  end
end