All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.blade.loader.FileSystemRouteLoader Maven / Gradle / Ivy

There is a newer version: 1.7.2-beta
Show newest version
package com.blade.loader;

import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;

/**
 * 
 * 

* 基于文件系统实现的路由加载器 *

* * @author biezhi * @since 1.0 */ public class FileSystemRouteLoader extends AbstractFileRouteLoader { private File file; public FileSystemRouteLoader() { } public FileSystemRouteLoader(String filePath) { this(new File(filePath)); } public FileSystemRouteLoader(File file) { this.file = file; } @Override protected InputStream getInputStream() throws Exception { return new FileInputStream(file); } public void setFile(File file) { this.file = file; } public void setFilePath(String filePath) { this.file = new File(filePath); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy