public final class CompressionManager
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
ONE_MEGABYTE |
| Modifier and Type | Method and Description |
|---|---|
static java.io.InputStream |
decompress(java.io.InputStream compressed)
This method decompresses a compressed input stream.
|
static boolean |
isCompressed(java.io.File file)
Is a file compressed? (the magic number in the first 2 bytes is used to
detect the compression.
|
static boolean |
isCompressed(java.lang.String filename)
Is a file compressed? (the magic number in the first 2 bytes is used to
detect the compression.
|
protected static ICompressProvider |
nextCompressionProvider(int mag1,
int mag2,
ICompressProvider old) |
public static final int ONE_MEGABYTE
public static java.io.InputStream decompress(java.io.InputStream compressed)
throws FitsException
compressed - The compressed input streamFitsException - when the stream could not be read or decompressedpublic static boolean isCompressed(java.io.File file)
file - file to test for compression algorithmspublic static boolean isCompressed(java.lang.String filename)
filename - of the file to test for compression algorithmsprotected static ICompressProvider nextCompressionProvider(int mag1, int mag2, ICompressProvider old)