au.gov.amsa.risky.format.ZipMain Maven / Gradle / Ivy
package au.gov.amsa.risky.format;
import java.io.File;
import java.util.List;
import java.util.regex.Pattern;
import rx.functions.Action2;
import rx.functions.Func1;
public class ZipMain {
public static void main(String[] args) {
final File input = new File(System.getProperty("input"));
final File output = new File(System.getProperty("output"));
Pattern pattern = Pattern.compile(System.getProperty("pattern"));
Action2, File> fixesWriter = (fixes, file) -> {
BinaryFixesWriter.writeFixes(fixes, file, false, true, BinaryFixesFormat.WITHOUT_MMSI);
};
Func1 renamer = name -> name + ".zip";
Formats.transform(input, output, pattern, Transformers. identity(), fixesWriter,
renamer).count().toBlocking().single();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy