if (Pack200CompressorInputStream.matches(signature, signatureLength)) {
return new Pack200CompressorInputStream(in);
}
if (FramedSnappyCompressorInputStream.matches(signature, signatureLength)) {
return new FramedSnappyCompressorInputStream(in);
}
} catch (IOException e) {
throw new CompressorException("Failed to detect Compressor from InputStream.", e);
}