test_class.declarator: TXT_GZIP_SAMPLE_FILE = "src/test/resources/gzip/sample.txt.gz"
test_class.modifier: private static final
test_class.original_string: private static final String TXT_GZIP_SAMPLE_FILE = "src/test/resources/gzip/sample.txt.gz";
test_class.type: String
test_class.var_name: TXT_GZIP_SAMPLE_FILE
test_class.declarator: RECORDS = "Records"
test_class.modifier: private static final
test_class.original_string: private static final String RECORDS = "Records";
test_class.type: String
test_class.var_name: RECORDS
test_class.declarator: THREE_FILES_GZIP_SAMPLE_FILE = "src/test/resources/gzip/three-files.gz"
test_class.modifier: private static final
test_class.original_string: private static final String THREE_FILES_GZIP_SAMPLE_FILE = "src/test/resources/gzip/three-files.gz";
test_class.type: String
test_class.var_name: THREE_FILES_GZIP_SAMPLE_FILE
test_class.file: jhove-ext-modules/src/test/java/edu/harvard/hul/ois/jhove/module/GzipModuleTest.java
test_class.identifier: GzipModuleTest
test_case.body: @Test
      public void parseThreeFilesGzipFile() throws Exception {
          File gzipFile = new File(THREE_FILES_GZIP_SAMPLE_FILE);
          assertTrue( gzipFile.isFile() );
          
          GzipModule gzm = new GzipModule();
          RepInfo info = new RepInfo(gzipFile.getAbsolutePath());
          gzm.parse(new FileInputStream(gzipFile), info, 0);
          
          assertEquals(RepInfo.TRUE, info.getWellFormed());
          assertEquals(RepInfo.TRUE, info.getValid());
          assertEquals(Arrays.asList(gzm.getName()), info.getSigMatch());
          
          assertEquals(0, info.getMessage().size());
          
          // Validate that it creates properties for each record
          assertEquals(1, info.getProperty().size());
          assertNotNull(info.getProperty().get(RECORDS));
          assertEquals(3, ((List<Property>)info.getProperty().get(RECORDS).getValue()).size());
      }
test_case.class_method_signature: GzipModuleTest.parseThreeFilesGzipFile()
test_case.full_signature: @Test public void parseThreeFilesGzipFile()
test_case.identifier: parseThreeFilesGzipFile
test_case.invocations: assertTrue isFile getAbsolutePath parse assertEquals getWellFormed assertEquals getValid assertEquals asList getName getSigMatch assertEquals size getMessage assertEquals size getProperty assertNotNull get getProperty assertEquals size getValue get getProperty
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void parseThreeFilesGzipFile()
focal_class.declarator: KB_AGENT = new Builder(
              "Royal Library of Denmark", AgentType.STANDARD)
      .address("Søren Kierkegaards Plads 1, 1219 København K, Denmark")
      .fax("+45 3393 2218")
      .web("http://kb.dk").build()
focal_class.modifier: private static final
focal_class.original_string: private static final Agent KB_AGENT = new Builder(
              "Royal Library of Denmark", AgentType.STANDARD)
      .address("Søren Kierkegaards Plads 1, 1219 København K, Denmark")
      .fax("+45 3393 2218")
      .web("http://kb.dk").build();
focal_class.type: Agent
focal_class.var_name: KB_AGENT
focal_class.declarator: NAME = "GZIP-kb"
focal_class.modifier: private static final
focal_class.original_string: private static final String NAME = "GZIP-kb";
focal_class.type: String
focal_class.var_name: NAME
focal_class.declarator: RELEASE = "0.1"
focal_class.modifier: private static final
focal_class.original_string: private static final String RELEASE = "0.1";
focal_class.type: String
focal_class.var_name: RELEASE
focal_class.declarator: DATE = {2015, 12, 8}
focal_class.modifier: private static final
focal_class.original_string: private static final int[] DATE = {2015, 12, 8};
focal_class.type: int[]
focal_class.var_name: DATE
focal_class.declarator: FORMAT = {"GZIP"}
focal_class.modifier: private static final
focal_class.original_string: private static final String[] FORMAT = {"GZIP"};
focal_class.type: String[]
focal_class.var_name: FORMAT
focal_class.declarator: COVERAGE = "GZIP, https://tools.ietf.org/html/rfc1952"
focal_class.modifier: private static final
focal_class.original_string: private static final String COVERAGE = "GZIP, https://tools.ietf.org/html/rfc1952";
focal_class.type: String
focal_class.var_name: COVERAGE
focal_class.declarator: MIMETYPE = {"application/gzip", "application/x-gzip"}
focal_class.modifier: private static final
focal_class.original_string: private static final String[] MIMETYPE = {"application/gzip", "application/x-gzip"};
focal_class.type: String[]
focal_class.var_name: MIMETYPE
focal_class.declarator: WELLFORMED = ""
focal_class.modifier: private static final
focal_class.original_string: private static final String WELLFORMED = "";
focal_class.type: String
focal_class.var_name: WELLFORMED
focal_class.declarator: VALIDITY = "The file is well-formed"
focal_class.modifier: private static final
focal_class.original_string: private static final String VALIDITY = "The file is well-formed";
focal_class.type: String
focal_class.var_name: VALIDITY
focal_class.declarator: REPINFO = ""
focal_class.modifier: private static final
focal_class.original_string: private static final String REPINFO = "";
focal_class.type: String
focal_class.var_name: REPINFO
focal_class.declarator: NOTE = ""
focal_class.modifier: private static final
focal_class.original_string: private static final String NOTE = "";
focal_class.type: String
focal_class.var_name: NOTE
focal_class.declarator: RIGHTS = "Copyright 2015 by The Royal Library of Denmark. " +
              "Released under the GNU Lesser General Public License."
focal_class.modifier: private static final
focal_class.original_string: private static final String RIGHTS = "Copyright 2015 by The Royal Library of Denmark. " +
              "Released under the GNU Lesser General Public License.";
focal_class.type: String
focal_class.var_name: RIGHTS
focal_class.declarator: EXTENSION = ".gz"
focal_class.modifier: private static final
focal_class.original_string: private static final String EXTENSION = ".gz";
focal_class.type: String
focal_class.var_name: EXTENSION
focal_class.declarator: entryProperties
focal_class.modifier: private
focal_class.original_string: private List<Property> entryProperties;
focal_class.type: List<Property>
focal_class.var_name: entryProperties
focal_class.file: jhove-ext-modules/src/main/java/edu/harvard/hul/ois/jhove/module/GzipModule.java
focal_class.identifier: GzipModule
focal_class.class_method_signature: GzipModule.GzipModule()
focal_class.full_signature: public  GzipModule()
focal_class.identifier: GzipModule
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  GzipModule()
focal_class.class_method_signature: GzipModule.setVendorAndSpecification()
focal_class.full_signature: private void setVendorAndSpecification()
focal_class.identifier: setVendorAndSpecification
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void setVendorAndSpecification()
focal_class.class_method_signature: GzipModule.initialiseVariables()
focal_class.full_signature: private void initialiseVariables()
focal_class.identifier: initialiseVariables
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void initialiseVariables()
focal_class.class_method_signature: GzipModule.resetParams()
focal_class.full_signature: @Override public void resetParams()
focal_class.identifier: resetParams
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void resetParams()
focal_class.class_method_signature: GzipModule.checkSignatures(File file,
              InputStream stream, 
              RepInfo info)
focal_class.full_signature: @Override public void checkSignatures(File file,
              InputStream stream, 
              RepInfo info)
focal_class.identifier: checkSignatures
focal_class.modifiers: @Override public
focal_class.parameters: (File file,
              InputStream stream, 
              RepInfo info)
focal_class.return: void
focal_class.signature: void checkSignatures(File file,
              InputStream stream, 
              RepInfo info)
focal_class.class_method_signature: GzipModule.checkSignatures(File file,
              RandomAccessFile raf, 
              RepInfo info)
focal_class.full_signature: @Override public void checkSignatures(File file,
              RandomAccessFile raf, 
              RepInfo info)
focal_class.identifier: checkSignatures
focal_class.modifiers: @Override public
focal_class.parameters: (File file,
              RandomAccessFile raf, 
              RepInfo info)
focal_class.return: void
focal_class.signature: void checkSignatures(File file,
              RandomAccessFile raf, 
              RepInfo info)
focal_class.class_method_signature: GzipModule.parse(RandomAccessFile file, RepInfo info)
focal_class.full_signature: @Override public void parse(RandomAccessFile file, RepInfo info)
focal_class.identifier: parse
focal_class.modifiers: @Override public
focal_class.parameters: (RandomAccessFile file, RepInfo info)
focal_class.return: void
focal_class.signature: void parse(RandomAccessFile file, RepInfo info)
focal_class.class_method_signature: GzipModule.parse(InputStream stream, RepInfo info, int parseIndex)
focal_class.full_signature: @Override public int parse(InputStream stream, RepInfo info, int parseIndex)
focal_class.identifier: parse
focal_class.modifiers: @Override public
focal_class.parameters: (InputStream stream, RepInfo info, int parseIndex)
focal_class.return: int
focal_class.signature: int parse(InputStream stream, RepInfo info, int parseIndex)
focal_class.class_method_signature: GzipModule.parseRecords(GzipReader reader)
focal_class.full_signature: protected void parseRecords(GzipReader reader)
focal_class.identifier: parseRecords
focal_class.modifiers: protected
focal_class.parameters: (GzipReader reader)
focal_class.return: void
focal_class.signature: void parseRecords(GzipReader reader)
focal_class.class_method_signature: GzipModule.processEntry(GzipEntry entry)
focal_class.full_signature: protected void processEntry(GzipEntry entry)
focal_class.identifier: processEntry
focal_class.modifiers: protected
focal_class.parameters: (GzipEntry entry)
focal_class.return: void
focal_class.signature: void processEntry(GzipEntry entry)
focal_class.class_method_signature: GzipModule.reportResults(GzipReader reader, RepInfo repInfo)
focal_class.full_signature: private void reportResults(GzipReader reader, RepInfo repInfo)
focal_class.identifier: reportResults
focal_class.modifiers: private
focal_class.parameters: (GzipReader reader, RepInfo repInfo)
focal_class.return: void
focal_class.signature: void reportResults(GzipReader reader, RepInfo repInfo)
focal_class.class_method_signature: GzipModule.extractDiagnosisType(Diagnosis d)
focal_class.full_signature: private static String extractDiagnosisType(Diagnosis d)
focal_class.identifier: extractDiagnosisType
focal_class.modifiers: private static
focal_class.parameters: (Diagnosis d)
focal_class.return: String
focal_class.signature: String extractDiagnosisType(Diagnosis d)
focal_class.class_method_signature: GzipModule.extractDiagnosisMessage(Diagnosis d)
focal_class.full_signature: private static String extractDiagnosisMessage(Diagnosis d)
focal_class.identifier: extractDiagnosisMessage
focal_class.modifiers: private static
focal_class.parameters: (Diagnosis d)
focal_class.return: String
focal_class.signature: String extractDiagnosisMessage(Diagnosis d)
focal_class.superclass: extends ModuleBase
focal_method.body: @Override
      public void parse(RandomAccessFile file, RepInfo info) {
          InputStream stream = new RandomAccessFileInputStream(file);
          parse(stream, info, 0);
      }
focal_method.class_method_signature: GzipModule.parse(RandomAccessFile file, RepInfo info)
focal_method.full_signature: @Override public void parse(RandomAccessFile file, RepInfo info)
focal_method.identifier: parse
focal_method.invocations: parse
focal_method.modifiers: @Override public
focal_method.parameters: (RandomAccessFile file, RepInfo info)
focal_method.return: void
focal_method.signature: void parse(RandomAccessFile file, RepInfo info)