public final class CompressionManager extends Object
Modifier and Type | Field and Description |
---|---|
static int |
ONE_MEGABYTE |
Modifier and Type | Method and Description |
---|---|
static InputStream |
decompress(InputStream compressed)
This method decompresses a compressed input stream.
|
static boolean |
isCompressed(File file)
Is a file compressed? (the magic number in the first 2 bytes is used to
detect the compression.
|
static boolean |
isCompressed(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 InputStream decompress(InputStream compressed) throws FitsException
compressed
- The compressed input streamFitsException
- when the stream could not be read or decompressedpublic static boolean isCompressed(File file)
file
- file to test for compression algorithmspublic static boolean isCompressed(String filename)
filename
- of the file to test for compression algorithmsprotected static ICompressProvider nextCompressionProvider(int mag1, int mag2, ICompressProvider old)
Copyright © 1996–2016 nom-tam-fits. All rights reserved.