Package org.burningwave.core.io
Class Resources
java.lang.Object
org.burningwave.core.io.Resources
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget(String resourceRelativePath, ClassLoader... resourceClassLoaders) get(String resourceRelativePath, ClassLoader resourceClassLoader, boolean onlyParents) get(String resourceRelativePath, Collection<ClassLoader> resourceClassLoaders) getAll(String resourceRelativePath, ClassLoader... resourceClassLoaders) getAll(String resourceRelativePath, ClassLoader resourceClassLoader, boolean onlyParents) final Collection<FileSystemItem> getAsFileSystemItems(ClassLoader classLoader, String... paths) final Collection<FileSystemItem> getAsFileSystemItems(ClassLoader classLoader, Collection<String>... pathCollections) getAsInputStream(String resourceRelativePath, ClassLoader... resourceClassLoaders) getAsInputStream(String resourceRelativePath, ClassLoader resourceClassLoader, boolean onlyParents) getAsInputStreams(String resourceRelativePath, ClassLoader... resourceClassLoaders) getAsInputStreams(String resourceRelativePath, ClassLoader resourceClassLoader, boolean onlyParents) getAsStringBuffer(InputStream inputStream) getAsStringBuffer(String resourceRelativePath, ClassLoader resourceClassLoader, boolean onlyParents) getClassPath(Class<?> cls) final Collection<Map<String, String>> getManifestAsMapByMainAttributes(Predicate<Attributes> attributesPredicate, ClassLoader... resourceClassLoaders) final Collection<Manifest> getManifestByMainAttributes(Predicate<Attributes> attributesPredicate, ClassLoader... resourceClassLoaders)
-
Constructor Details
-
Resources
public Resources()
-
-
Method Details
-
getAll
public Collection<URL> getAll(String resourceRelativePath, ClassLoader resourceClassLoader, boolean onlyParents) -
getAll
-
get
-
get
-
get
-
getAsInputStreams
public Map<URL,InputStream> getAsInputStreams(String resourceRelativePath, ClassLoader resourceClassLoader, boolean onlyParents) -
getAsInputStreams
public Map<URL,InputStream> getAsInputStreams(String resourceRelativePath, ClassLoader... resourceClassLoaders) -
getAsInputStream
public Map.Entry<URL,InputStream> getAsInputStream(String resourceRelativePath, ClassLoader resourceClassLoader, boolean onlyParents) -
getAsInputStream
public Map.Entry<URL,InputStream> getAsInputStream(String resourceRelativePath, ClassLoader... resourceClassLoaders) -
get
-
getClassPath
-
getAsStringBuffer
public StringBuffer getAsStringBuffer(String resourceRelativePath, ClassLoader resourceClassLoader, boolean onlyParents) throws IOException - Throws:
IOException
-
getAsStringBuffer
- Throws:
IOException
-
getAsFileSystemItems
@SafeVarargs public final Collection<FileSystemItem> getAsFileSystemItems(ClassLoader classLoader, String... paths) -
getAsFileSystemItems
@SafeVarargs public final Collection<FileSystemItem> getAsFileSystemItems(ClassLoader classLoader, Collection<String>... pathCollections) -
getManifestByMainAttributes
public final Collection<Manifest> getManifestByMainAttributes(Predicate<Attributes> attributesPredicate, ClassLoader... resourceClassLoaders) -
getManifestAsMapByMainAttributes
public final Collection<Map<String,String>> getManifestAsMapByMainAttributes(Predicate<Attributes> attributesPredicate, ClassLoader... resourceClassLoaders)
-