use of org.codice.imaging.nitf.fluent.NitfCreationFlow in project alliance by codice.
the class ImageInputTransformerTest method createNitfWithDifferentImageDateTimes.
private static void createNitfWithDifferentImageDateTimes(File file, DateTime fileDateTime, DateTime... imageDateTimes) {
NitfCreationFlow nitfCreationFlow = new NitfCreationFlowImpl().fileHeader(() -> TreUtilityTest.createFileHeader(fileDateTime));
Arrays.stream(imageDateTimes).forEach(imageDateTime -> nitfCreationFlow.imageSegment(() -> createImageSegment(imageDateTime)));
nitfCreationFlow.write(file.getAbsolutePath());
}
Aggregations