class GzipModule extends ModuleBase {

    @Override
    public void checkSignatures (File file,
            InputStream stream, 
            RepInfo info) 
    throws IOException  {
        info.setFormat (_format[0]);
        info.setMimeType (_mimeType[0]);
        info.setModule (this);
    	
    	boolean checkIsGzip = GzipReader.isGzipped(new ByteCountingPushBackInputStream(stream, GzipReader.DEFAULT_INPUT_BUFFER_SIZE));
        if (checkIsGzip) {
            info.setSigMatch(_name);
        } else {
            info.setWellFormed (false);
        }
        
    }

    public  GzipModule();

}