From dd22f0e0f554e287b4e161d20611b4492facb853 Mon Sep 17 00:00:00 2001 From: gaibu <1016771049@qq.com> Date: Mon, 30 Jan 2023 22:18:34 +0800 Subject: [PATCH] =?UTF-8?q?feat=20#I6BDLN=20=E5=A2=9E=E5=8A=A0=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../yomahub/liteflow/spi/PathContentParser.java | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) 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; }