class CompressedApplicationInputStream implements AutoCloseable {

    public static CompressedApplicationInputStream createFromCompressedStream(InputStream is, String contentType) {
        try {
            ArchiveInputStream ais = getArchiveInputStream(is, contentType);
            return createFromCompressedStream(ais);
        } catch (IOException e) {
            throw new InternalServerException("Unable to create compressed application stream", e);
        }
    }

    private  CompressedApplicationInputStream(ArchiveInputStream ais);

}