-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fb135f2
commit b59e2bb
Showing
5 changed files
with
91 additions
and
9 deletions.
There are no files selected for viewing
39 changes: 39 additions & 0 deletions
39
src/main/java/ru/olegcherednik/zip4jvm/io/out/DataOutputStream.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package ru.olegcherednik.zip4jvm.io.out; | ||
|
||
import ru.olegcherednik.zip4jvm.io.out.data.DataOutput; | ||
|
||
import lombok.RequiredArgsConstructor; | ||
|
||
import java.io.IOException; | ||
import java.io.OutputStream; | ||
|
||
/** | ||
* @author Oleg Cherednik | ||
* @since 29.10.2024 | ||
*/ | ||
@RequiredArgsConstructor | ||
public class DataOutputStream extends OutputStream { | ||
|
||
private final DataOutput out; | ||
|
||
@Override | ||
public void write(int val) throws IOException { | ||
out.writeByte(val); | ||
} | ||
|
||
@Override | ||
public void write(byte[] buf, int offs, int len) throws IOException { | ||
out.write(buf, offs, len); | ||
} | ||
|
||
@Override | ||
public void flush() throws IOException { | ||
out.flush(); | ||
} | ||
|
||
@Override | ||
public void close() throws IOException { | ||
out.close(); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters