@Test(expected = ValidationException.class) public void testExtractTimeStamps_badFilename() throws ParseException, ValidationException { final TimeStampExtractor extractor = new TimeStampExtractor("yyyyMMdd", "${startDate}*.dim"); extractor.extractTimeStamps("something20110603.dim"); }
public ProductData.UTC[] extractTimeStamps(String fileName) throws ValidationException { final ProductData.UTC startTime = timeStampAccess.getStartTime(fileName); final ProductData.UTC stopTime = timeStampAccess.getStopTime(fileName); return new ProductData.UTC[]{startTime, stopTime}; }
TimeStampExtractor { public ProductData.UTC[] extractTimeStamps(String fileName) throws ValidationException { final ProductData.UTC startTime = timeStampAccess.getStartTime(fileName); final ProductData.UTC stopTime = timeStampAccess.getStopTime(fileName); return new ProductData.UTC[]{startTime, stopTime}; } }
TimeStampExtractor { public ProductData.UTC[] extractTimeStamps(String fileName) throws ValidationException { final ProductData.UTC startTime = timeStampAccess.getStartTime(fileName); final ProductData.UTC stopTime = timeStampAccess.getStopTime(fileName); return new ProductData.UTC[]{startTime, stopTime}; } TimeStampExtractor(String dateInterpretationPattern, String filenameInterpretationPattern); }
TimeStampExtractor { public ProductData.UTC[] extractTimeStamps(String fileName) throws ValidationException { final ProductData.UTC startTime = timeStampAccess.getStartTime(fileName); final ProductData.UTC stopTime = timeStampAccess.getStopTime(fileName); return new ProductData.UTC[]{startTime, stopTime}; } TimeStampExtractor(String dateInterpretationPattern, String filenameInterpretationPattern); ProductData.UTC[] extractTimeStamps(String fileName); }
TimeStampExtractor { public ProductData.UTC[] extractTimeStamps(String fileName) throws ValidationException { final ProductData.UTC startTime = timeStampAccess.getStartTime(fileName); final ProductData.UTC stopTime = timeStampAccess.getStopTime(fileName); return new ProductData.UTC[]{startTime, stopTime}; } TimeStampExtractor(String dateInterpretationPattern, String filenameInterpretationPattern); ProductData.UTC[] extractTimeStamps(String fileName);  }