Class ParallelGZIPOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
net.nilosplace.process_display.util.parallel.ParallelGZIPOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
-
Field Summary
Fields inherited from class java.io.FilterOutputStream
out -
Constructor Summary
ConstructorsConstructorDescriptionCreates a ParallelGZIPOutputStream usingParallelGZIPEnvironment.getSharedThreadPool().ParallelGZIPOutputStream(OutputStream out, int nthreads) Deprecated.ParallelGZIPOutputStream(OutputStream out, ExecutorService executor) ParallelGZIPOutputStream(OutputStream out, ExecutorService executor, int nthreads) Deprecated. -
Method Summary
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
ParallelGZIPOutputStream
@Deprecated public ParallelGZIPOutputStream(@Nonnull OutputStream out, @Nonnull ExecutorService executor, @Nonnegative int nthreads) throws IOException Deprecated.- Throws:
IOException
-
ParallelGZIPOutputStream
@Deprecated public ParallelGZIPOutputStream(@Nonnull OutputStream out, @Nonnegative int nthreads) throws IOException Deprecated.Creates a ParallelGZIPOutputStream usingParallelGZIPEnvironment.getSharedThreadPool().- Parameters:
out- the eventual output stream for the compressed data.- Throws:
IOException- if it all goes wrong.
-
ParallelGZIPOutputStream
public ParallelGZIPOutputStream(@Nonnull OutputStream out, @Nonnull ExecutorService executor) throws IOException - Throws:
IOException
-
ParallelGZIPOutputStream
Creates a ParallelGZIPOutputStream usingParallelGZIPEnvironment.getSharedThreadPool().- Parameters:
out- the eventual output stream for the compressed data.- Throws:
IOException- if it all goes wrong.
-
-
Method Details
-
write
- Overrides:
writein classFilterOutputStream- Throws:
IOException
-
write
- Overrides:
writein classFilterOutputStream- Throws:
IOException
-
write
- Overrides:
writein classFilterOutputStream- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classFilterOutputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classFilterOutputStream- Throws:
IOException
-