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) voidcompress(byte[] uncompressed, OutputStream output) voidcompress(InputStream uncompressed, OutputStream output) createCompressingInputStream(byte[] uncompressed) createCompressingInputStream(InputStream uncompressed) createDecompressingInputStream(byte[] compressed) byte[]decompress(byte[] compressed) intdecompress(byte[] compressed, byte[] output) voiddecompress(byte[] compressed, OutputStream output) voiddecompress(InputStream compressed, OutputStream output) protected DelegatingInputStreamtoCloseIgnoring(InputStream stream) protected DelegatingOutputStreamtoCloseIgnoring(OutputStream stream) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.sf.jstuff.core.compression.Compression
createCompressingOutputStream, createDecompressingInputStream
-
Constructor Details
-
AbstractCompression
public AbstractCompression()
-
-
Method Details
-
compress
- Specified by:
compressin interfaceCompression- Throws:
IOException
-
compress
- Specified by:
compressin interfaceCompression- Throws:
IOException
-
compress
- Specified by:
compressin interfaceCompression- Throws:
IOException
-
createCompressingInputStream
- Specified by:
createCompressingInputStreamin interfaceCompression- Throws:
IOException
-
createCompressingInputStream
- Specified by:
createCompressingInputStreamin interfaceCompression- Throws:
IOException
-
createDecompressingInputStream
- Specified by:
createDecompressingInputStreamin interfaceCompression- Throws:
IOException
-
decompress
- Specified by:
decompressin interfaceCompression- Throws:
IOException
-
decompress
- Specified by:
decompressin interfaceCompression- Throws:
IOException
-
decompress
- Specified by:
decompressin interfaceCompression- Throws:
IOException
-
decompress
- Specified by:
decompressin interfaceCompression- Throws:
IOException
-
toCloseIgnoring
-
toCloseIgnoring
-