@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()); assertEquals(1, info.getProperty().size()); assertNotNull(info.getProperty().get(RECORDS)); assertEquals(3, ((List<Property>)info.getProperty().get(RECORDS).getValue()).size()); }
@Override public void parse(RandomAccessFile file, RepInfo info) { InputStream stream = new RandomAccessFileInputStream(file); parse(stream, info, 0); }
GzipModule extends ModuleBase { @Override public void parse(RandomAccessFile file, RepInfo info) { InputStream stream = new RandomAccessFileInputStream(file); parse(stream, info, 0); } }
GzipModule extends ModuleBase { @Override public void parse(RandomAccessFile file, RepInfo info) { InputStream stream = new RandomAccessFileInputStream(file); parse(stream, info, 0); } GzipModule(); }
GzipModule extends ModuleBase { @Override public void parse(RandomAccessFile file, RepInfo info) { InputStream stream = new RandomAccessFileInputStream(file); parse(stream, info, 0); } GzipModule(); @Override void resetParams(); @Override void checkSignatures(File file,
            InputStream stream, 
            RepInfo info); @Override void checkSignatures(File file,
            RandomAccessFile raf, 
            RepInfo info); @Override void parse(RandomAccessFile file, RepInfo info); @Override int parse(InputStream stream, RepInfo info, int parseIndex); }
GzipModule extends ModuleBase { @Override public void parse(RandomAccessFile file, RepInfo info) { InputStream stream = new RandomAccessFileInputStream(file); parse(stream, info, 0); } GzipModule(); @Override void resetParams(); @Override void checkSignatures(File file,
            InputStream stream, 
            RepInfo info); @Override void checkSignatures(File file,
            RandomAccessFile raf, 
            RepInfo info); @Override void parse(RandomAccessFile file, RepInfo info); @Override int parse(InputStream stream, RepInfo info, int parseIndex);  }