Search in sources :

Example 1 with NitfCreationFlow

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());
}
Also used : NitfCreationFlowImpl(org.codice.imaging.nitf.fluent.impl.NitfCreationFlowImpl) NitfCreationFlow(org.codice.imaging.nitf.fluent.NitfCreationFlow)

Aggregations

NitfCreationFlow (org.codice.imaging.nitf.fluent.NitfCreationFlow)1 NitfCreationFlowImpl (org.codice.imaging.nitf.fluent.impl.NitfCreationFlowImpl)1