Package net.sf.jstuff.core.compression
Class AbstractCompression
java.lang.Object
net.sf.jstuff.core.compression.AbstractCompression
- All Implemented Interfaces:
Compression
- Direct Known Subclasses:
BrotliCompression
,DeflateCompression
,GZipCompression
,LZ4BlockCompression
,LZ4FrameCompression
,LZFCompression
,SnappyCompression
,ZStdCompression
- Author:
- Sebastian Thomschke
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
compress
(byte[] uncompressed) void
compress
(byte[] uncompressed, OutputStream output) void
compress
(InputStream uncompressed, OutputStream output) createCompressingInputStream
(byte[] uncompressed) createCompressingInputStream
(InputStream uncompressed) createDecompressingInputStream
(byte[] compressed) byte[]
decompress
(byte[] compressed) int
decompress
(byte[] compressed, byte[] output) void
decompress
(byte[] compressed, OutputStream output) void
decompress
(InputStream compressed, OutputStream output) protected DelegatingInputStream
toCloseIgnoring
(InputStream stream) protected DelegatingOutputStream
toCloseIgnoring
(OutputStream stream) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.sf.jstuff.core.compression.Compression
createCompressingOutputStream, createDecompressingInputStream
-
Constructor Details
-
AbstractCompression
public AbstractCompression()
-
-
Method Details
-
compress
- Specified by:
compress
in interfaceCompression
- Throws:
IOException
-
compress
- Specified by:
compress
in interfaceCompression
- Throws:
IOException
-
compress
- Specified by:
compress
in interfaceCompression
- Throws:
IOException
-
createCompressingInputStream
- Specified by:
createCompressingInputStream
in interfaceCompression
- Throws:
IOException
-
createCompressingInputStream
- Specified by:
createCompressingInputStream
in interfaceCompression
- Throws:
IOException
-
createDecompressingInputStream
- Specified by:
createDecompressingInputStream
in interfaceCompression
- Throws:
IOException
-
decompress
- Specified by:
decompress
in interfaceCompression
- Throws:
IOException
-
decompress
- Specified by:
decompress
in interfaceCompression
- Throws:
IOException
-
decompress
- Specified by:
decompress
in interfaceCompression
- Throws:
IOException
-
decompress
- Specified by:
decompress
in interfaceCompression
- Throws:
IOException
-
toCloseIgnoring
-
toCloseIgnoring
-