Skip to content

Commit

Permalink
Fix class names for BZ2
Browse files Browse the repository at this point in the history
  • Loading branch information
thekid committed Mar 24, 2024
1 parent c219707 commit d28e549
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/main/php/io/archive/zip/Compression.class.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
<?php namespace io\archive\zip;

use io\streams\{
InputStream,
OutputStream,
Bz2CompressingOutputStream,
Bz2DecompressingInputStream,
use io\streams\compress\{
Bzip2OutputStream,
Bzip2InputStream,
DeflatingOutputStream,
InflatingInputStream
};
use io\streams\{InputStream, OutputStream};
use lang\{Enum, IllegalArgumentException};

/**
Expand Down Expand Up @@ -72,11 +71,11 @@ public function getDecompressionStream(InputStream $in) {
static function __static() { }

public function getCompressionStream(OutputStream $out, $level= 6) {
return new Bz2CompressingOutputStream($out, $level);
return new Bzip2OutputStream($out, $level);
}

public function getDecompressionStream(InputStream $in) {
return new Bz2DecompressingInputStream($in);
return new Bzip2InputStream($in);
}
};
}
Expand Down

0 comments on commit d28e549

Please sign in to comment.