类 ResourceLoaders
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.ArrayList<ResourceLoader>
-
- cn.mcres.karlatemp.mxlib.tools.ResourceLoaders
-
- 所有已实现的接口:
ResourceLoader
,Serializable
,Cloneable
,Iterable<ResourceLoader>
,Collection<ResourceLoader>
,List<ResourceLoader>
,RandomAccess
@Bean public final class ResourceLoaders extends ArrayList<ResourceLoader> implements ResourceLoader
Resource loader set- 从以下版本开始:
- 2.2
- 另请参阅:
- 序列化表格
-
-
字段概要
-
从类继承的字段 java.util.AbstractList
modCount
-
-
构造器概要
构造器 构造器 说明 ResourceLoaders()
-
方法概要
修饰符和类型 方法 说明 InputStream
found(String path, ClassLoader loader)
Find the resource with path.InputStream
found0(String path, ClassLoader loader)
This is for lambda.-
从类继承的方法 java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
-
从类继承的方法 java.util.AbstractCollection
containsAll, toString
-
从接口继承的方法 java.util.Collection
parallelStream, stream, toArray
-
从接口继承的方法 java.util.List
containsAll
-
-
-
-
方法详细资料
-
found0
@Nullable public InputStream found0(@NotNull String path, @Nullable ClassLoader loader)
从接口复制的说明:ResourceLoader
This is for lambda.If you are calling
ResourceLoader.found(String, ClassLoader)
directly, please do thispublic InputStream found0(@NotNull String path, @Nullable ClassLoader loader){return null;}
Do not call
ResourceLoader.found(String, ClassLoader)
in this method. Otherwise it will lead to an infinite loopUse found if it is used externally, do not call this method.
ResourceLoader loader = ....; // loader.found0(......); InputStream res = loader.found("META-INF/MANIFEST.MF", ClassLoader.getSystemClassLoader());
Call specification: Never use
ResourceLoader.found0(String, ClassLoader)
- 指定者:
found0
在接口中ResourceLoader
- 参数:
path
- The path of need found.loader
- The class loader using- 返回:
- The resource
- 另请参阅:
ResourceLoader.found(String, ClassLoader)
-
found
@Nullable public InputStream found(@NotNull String path, @Nullable ClassLoader loader)
从接口复制的说明:ResourceLoader
Find the resource with path.Call specification: Never use
ResourceLoader.found0(String, ClassLoader)
- 指定者:
found
在接口中ResourceLoader
- 参数:
path
- The resource path.loader
- ResourceLoader?- 返回:
- The resource founded.
-
-