public final class FileAndClasspathUtils extends Object
Modifier and Type | Class and Description |
---|---|
static class |
FileAndClasspathUtils.AssignableFilter |
static class |
FileAndClasspathUtils.ClassPathScanningCandidateProvider
A ClassPathScanningCandidateComponentProvider.
|
static class |
FileAndClasspathUtils.InterfaceFilter |
Modifier and Type | Method and Description |
---|---|
static void |
ensureFile(String fileFullPath)
Create if not exists.
|
static <T> List<T> |
parseFile(InputStream inputStream,
Function<String,T> mapper)
Parse file lines.
|
static <T> List<T> |
parseFile(org.springframework.core.io.Resource resource,
Function<String,T> mapper)
Parse file lines.
|
static <T> Set<Class<T>> |
scan(String basePackage,
org.springframework.core.type.filter.TypeFilter includeFilter)
scan.
|
public static void ensureFile(String fileFullPath)
fileFullPath
- pathpublic static <T> List<T> parseFile(org.springframework.core.io.Resource resource, Function<String,T> mapper)
T
- typeresource
- resourcemapper
- line mapperpublic static <T> List<T> parseFile(InputStream inputStream, Function<String,T> mapper)
T
- typeinputStream
- streammapper
- line mapperCopyright © 2017. All rights reserved.