Skip to content

Commit

Permalink
#3 refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
oleg-cherednik committed Oct 28, 2024
1 parent 04872d4 commit 8db49ae
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ public void write(byte[] buf, int offs, int len) throws IOException {
@Override
public void close() throws IOException {
bzip2.close();
encoderDataOutput.encodingAccomplished();
super.close();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ private void finish() throws IOException {
@Override
public void close() throws IOException {
finish();
encoderDataOutput.encodingAccomplished();
super.close();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public void write(byte[] buf, int offs, int len) throws IOException {

@Override
public void close() throws IOException {
encoderDataOutput.encodingAccomplished();
//encoderDataOutput.encodingAccomplished();
emos.close();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ public void write(byte[] buf, int offs, int len) throws IOException {
@Override
public void close() throws IOException {
lzma.close();
encoderDataOutput.encodingAccomplished();
super.close();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,10 @@ public void write(byte[] buf, int offs, int len) throws IOException {
encoderDataOutput.write(buf, offs, len);
}

@Override
public void close() throws IOException {
encoderDataOutput.encodingAccomplished();
super.close();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ public void write(byte[] buf, int offs, int len) throws IOException {
@Override
public void close() throws IOException {
zstd.close();
encoderDataOutput.encodingAccomplished();
super.close();
}

Expand Down

0 comments on commit 8db49ae

Please sign in to comment.