Skip to content

Instantly share code, notes, and snippets.

View xis19's full-sized avatar
🐱
Cat

Xiaoge Su xis19

🐱
Cat
View GitHub Profile
@xis19
xis19 / GzipUtils.java
Created November 18, 2019 06:32
Demo of GZIPInputStream, GZIPOutputStream + PipedInputStream, PipedOutputStream
import java.io.IOException;
import java.io.InputStream;
import java.io.PipedInputStream;
import java.io.PipedOutputStream;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.RejectedExecutionException;
import java.util.concurrent.TimeUnit;
import java.util.zip.GZIPInputStream;
import java.util.zip.GZIPOutputStream;