This is because .java
is a valid image format for SCIFIO. For example, run this Groovy script from the script editor (e.g. with the blobs image open):
#@ File (label="Enter .java file path to save", style="save", value="testJavaFormat.java") outputFile
#@ Dataset input
#@ DatasetIOService datasetIO
datasetIO.save(input, outputFile.getPath())
The output file will look similar to this:
//
// testJavaFormat.java
//
// Generated by SCIFIO v0.37.3
// Generated on Tue Mar 26 15:39:47 CET 2019
public class testJavaFormat {
public byte[][] image0Plane0 = {
{40, 32, 24, 24, 16, 24, 24, 32, 32, 32, 24, 24, 24, 24, 24, 32, 40, 80, 112, -104, -72, -48, -24, -24, -32, -40, -48, -48, -48, -48, -56, -56, -56, -72, -96, -128, 88, 72, 48, 40, 24, 24, 24, 32, 32, 40, 40, 48, 48, 48, 48, 72, 96, -120, -80, -72, -64, -72, -88, -80, -72, -64, -56, -56, -64, -72, -80, -72, -72, -64, -56, -64, -80, -112, 112, 88, 56, 40, 24, 24, 24, 32, 32, 32, 32, 40, 40, 48, 48, 48, 48, 48, 40, 40, 40, 56, 72, 120, -96, -64, -40, -24, -16, -24, -32, -32, -32, -24, -24, -16, -16, -16, -16, -16, -24, -24, -32, -40, -48, -72, -104, 104, 56, 48, 32, 40, 48, 64, 72, 64, 56, 56, 56, 56, 48, 48, 48, 48, 40, 40, 32, 32, 32, 56, 72, 120, -96, -64, -40, -24, -8, -16, -24, -24, -24, -24, -24, -24, -32, -40, -56, -64, -72, -88, -112, 112, 80, 56, 32, 40, 40, 48, 56, 56, 56, 56, 48, 48, 48, 40, 32, 32, 32, 32, 32, 40, 48, 56, 56, 64, 64, 64, 64, 56, 48, 48, 40, 40, 40, 48, 48, 56, 56, 56, 56, 64, 64, 56, 48, 48, 48, 48, 48, 56, 56, 64, 64, 64, 56, 56, 48, 48, 48, 48, 40, 40, 40, 40, 40, 32, 24, 24, 24, 24, 16, 16, 8, 16, 24, 48, 64, 104, -112, -80, -56, -40, -24, -16, -16, -16, -16, -16, -24, -40, -56, -56},
{56, 40, 24, 24, 24, 32, 32, 32, 32, 32, 24, 24, 24, 32, 32, 48, 56, 96, -128, -96, -64, -40, -24, -24, -24, -32, -48, -48, -48, -56, -56, -64, -72, -96, -112, 112, 80, 64, 48, 40, 24, 24, 24, 32, 32, 40, 40, 48, 48, 48, 48, 72, 88, -128, -88, -72, -64, -72, -80, -80, -72, -72, -64, -72, -72, -72, -80, -64, -56, -48, -48, -56, -72, -112, 112, 88, 56, 48, 32, 32, 24, 32, 40, 40, 40, 48, 48, 48, 48, 48, 48, 40, 40, 40, 48, 72, 88, -120, -80, -56, -32, -24, -16, -24, -32, -32, -32, -32, -24, -24, -24, -24, -24, -24, -32, -32, -32, -40, -48, -72, -96, 120, 72, 56, 40, 40, 48, 56, 64, 64, 56, 56, 48, 48, 48, 48, 48, 48, 40, 40, 32, 40, 40, 72, 96, -120, -80, -56, -32, -16, -8, -8, -16, -16, -16, -16, -16, -24, -24, -40, -48, -64, -72, -88, -104, 120, 80, 56, 32, 32, 40, 48, 56, 56, 56, 48, 48, 48, 40, 40, 32, 32, 32, 40, 40, 48, 56, 56, 56, 64, 64, 56, 56, 48, 48, 40, 40, 40, 40, 48, 48, 56, 56, 64, 64, 64, 64, 56, 48, 48, 48, 48, 48, 48, 48, 56, 64, 64, 56, 56, 48, 48, 48, 40, 40, 40, 40, 40, 40, 40, 32, 32, 24, 24, 16, 16, 16, 32, 40, 64, 88, -128, -88, -64, -40, -24, -16, -8, -8, -8, -8, -16, -16, -24, -40, -40},
{64, ...