diff --git a/liteflow-core/src/main/java/com/yomahub/liteflow/spi/PathContentParser.java b/liteflow-core/src/main/java/com/yomahub/liteflow/spi/PathContentParser.java index 93f7a5117..c39b4f74a 100644 --- a/liteflow-core/src/main/java/com/yomahub/liteflow/spi/PathContentParser.java +++ b/liteflow-core/src/main/java/com/yomahub/liteflow/spi/PathContentParser.java @@ -2,9 +2,23 @@ package com.yomahub.liteflow.spi; import java.util.List; -public interface PathContentParser extends SpiPriority{ +public interface PathContentParser extends SpiPriority { + /** + * 解析路径下的文件内容 + * + * @param pathList 文件路径(支持 classpath 路径和 file 绝对路径,spring 环境支持 PathMatchingResourcePatternResolver 规则) + * @return 返回文件内容 + * @throws Exception ex + */ List parseContent(List pathList) throws Exception; + /** + * 获取文件路径的绝对路径 + * + * @param pathList 文件路径(支持 classpath 路径和 file 绝对路径,spring 环境支持 PathMatchingResourcePatternResolver 规则) + * @return 返回文件绝对路径 + * @throws Exception ex + */ List getFileAbsolutePath(List pathList) throws Exception; }