@Test public void testGetInputFile_fileInput() { final File inputFile = new File("I_am_a.file"); final File file = ModisProductReaderPlugIn.getInputFile(inputFile); assertNotNull(file); assertEquals(inputFile.getName(), file.getName()); }
static File getInputFile(Object input) { if (input instanceof String) { return new File((String) input); } else if (input instanceof File) { return (File) input; } return null; }
ModisProductReaderPlugIn implements ProductReaderPlugIn { static File getInputFile(Object input) { if (input instanceof String) { return new File((String) input); } else if (input instanceof File) { return (File) input; } return null; } }
ModisProductReaderPlugIn implements ProductReaderPlugIn { static File getInputFile(Object input) { if (input instanceof String) { return new File((String) input); } else if (input instanceof File) { return (File) input; } return null; }  }
ModisProductReaderPlugIn implements ProductReaderPlugIn { static File getInputFile(Object input) { if (input instanceof String) { return new File((String) input); } else if (input instanceof File) { return (File) input; } return null; }  DecodeQualification getDecodeQualification(Object input); Class[] getInputTypes(); ProductReader createReaderInstance(); SnapFileFilter getProductFileFilter(); String[] getDefaultFileExtensions(); String getDescription(Locale locale); String[] getFormatNames(); }
ModisProductReaderPlugIn implements ProductReaderPlugIn { static File getInputFile(Object input) { if (input instanceof String) { return new File((String) input); } else if (input instanceof File) { return (File) input; } return null; }  DecodeQualification getDecodeQualification(Object input); Class[] getInputTypes(); ProductReader createReaderInstance(); SnapFileFilter getProductFileFilter(); String[] getDefaultFileExtensions(); String getDescription(Locale locale); String[] getFormatNames();  }