@Test public void getDumpFileCompressionType() { assertEquals(WmfDumpFile.getDumpFileCompressionType("foo.tar.gz"), CompressionType.GZIP); assertEquals(WmfDumpFile.getDumpFileCompressionType("bar.txt.bz2"), CompressionType.BZ2); assertEquals(WmfDumpFile.getDumpFileCompressionType("baz.txt"), CompressionType.NONE); assertEquals(WmfDumpFile.getDumpFileCompressionType("bat.txt"), CompressionType.NONE); }
public static CompressionType getDumpFileCompressionType(String fileName) { if (fileName.endsWith(".gz")) { return CompressionType.GZIP; } else if (fileName.endsWith(".bz2")) { return CompressionType.BZ2; } else { return CompressionType.NONE; } }
WmfDumpFile implements MwDumpFile { public static CompressionType getDumpFileCompressionType(String fileName) { if (fileName.endsWith(".gz")) { return CompressionType.GZIP; } else if (fileName.endsWith(".bz2")) { return CompressionType.BZ2; } else { return CompressionType.NONE; } } }
WmfDumpFile implements MwDumpFile { public static CompressionType getDumpFileCompressionType(String fileName) { if (fileName.endsWith(".gz")) { return CompressionType.GZIP; } else if (fileName.endsWith(".bz2")) { return CompressionType.BZ2; } else { return CompressionType.NONE; } } WmfDumpFile(String dateStamp, String projectName); }
WmfDumpFile implements MwDumpFile { public static CompressionType getDumpFileCompressionType(String fileName) { if (fileName.endsWith(".gz")) { return CompressionType.GZIP; } else if (fileName.endsWith(".bz2")) { return CompressionType.BZ2; } else { return CompressionType.NONE; } } WmfDumpFile(String dateStamp, String projectName); @Override String getProjectName(); @Override String getDateStamp(); @Override boolean isAvailable(); @Override String toString(); @Override BufferedReader getDumpFileReader(); static String getDumpFilePostfix(DumpContentType dumpContentType); static String getDumpFileWebDirectory(
			DumpContentType dumpContentType, String projectName); static CompressionType getDumpFileCompressionType(String fileName); static String getDumpFileDirectoryName(
			DumpContentType dumpContentType, String dateStamp); static String getDateStampFromDumpFileDirectoryName(
			DumpContentType dumpContentType, String directoryName); static String getDumpFileName(DumpContentType dumpContentType,
			String projectName, String dateStamp); static boolean isRevisionDumpFile(DumpContentType dumpContentType); }
WmfDumpFile implements MwDumpFile { public static CompressionType getDumpFileCompressionType(String fileName) { if (fileName.endsWith(".gz")) { return CompressionType.GZIP; } else if (fileName.endsWith(".bz2")) { return CompressionType.BZ2; } else { return CompressionType.NONE; } } WmfDumpFile(String dateStamp, String projectName); @Override String getProjectName(); @Override String getDateStamp(); @Override boolean isAvailable(); @Override String toString(); @Override BufferedReader getDumpFileReader(); static String getDumpFilePostfix(DumpContentType dumpContentType); static String getDumpFileWebDirectory(
			DumpContentType dumpContentType, String projectName); static CompressionType getDumpFileCompressionType(String fileName); static String getDumpFileDirectoryName(
			DumpContentType dumpContentType, String dateStamp); static String getDateStampFromDumpFileDirectoryName(
			DumpContentType dumpContentType, String directoryName); static String getDumpFileName(DumpContentType dumpContentType,
			String projectName, String dateStamp); static boolean isRevisionDumpFile(DumpContentType dumpContentType);  }