Code example for File

Methods: getName

0
            TestContext context) throws IOException {
        String scheme = sink.getScheme();
        if (scheme == null || scheme.endsWith("file") == false) {
            return null; 
        } 
        File file = new File(sink);
        if (file.getName().endsWith(".xls") == false) {
            return null; 
        } 
        LOG.info("Excelシートをデータシンクに利用します: {}", sink);
        return new ExcelSheetSinkFactory(file).createSink(definition, context);
    } 
}