Skip to content

Commit d28e549

Browse files
committed
Fix class names for BZ2
1 parent c219707 commit d28e549

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/main/php/io/archive/zip/Compression.class.php

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
<?php namespace io\archive\zip;
22

3-
use io\streams\{
4-
InputStream,
5-
OutputStream,
6-
Bz2CompressingOutputStream,
7-
Bz2DecompressingInputStream,
3+
use io\streams\compress\{
4+
Bzip2OutputStream,
5+
Bzip2InputStream,
86
DeflatingOutputStream,
97
InflatingInputStream
108
};
9+
use io\streams\{InputStream, OutputStream};
1110
use lang\{Enum, IllegalArgumentException};
1211

1312
/**
@@ -72,11 +71,11 @@ public function getDecompressionStream(InputStream $in) {
7271
static function __static() { }
7372

7473
public function getCompressionStream(OutputStream $out, $level= 6) {
75-
return new Bz2CompressingOutputStream($out, $level);
74+
return new Bzip2OutputStream($out, $level);
7675
}
7776

7877
public function getDecompressionStream(InputStream $in) {
79-
return new Bz2DecompressingInputStream($in);
78+
return new Bzip2InputStream($in);
8079
}
8180
};
8281
}

0 commit comments

Comments
 (0)