A B C F G I L O P R S T U W 
All Classes All Packages

A

accept(T) - Method in interface com.adelean.inject.resources.core.function.ThrowingConsumer
Performs this operation on the given argument.
apply(T) - Method in interface com.adelean.inject.resources.core.function.ThrowingFunction
Applies this function to the given argument.
asByteArray() - Method in class com.adelean.inject.resources.core.Resource
Returns resource wrapper ResourceAsByteArray that reads resource as bytes array.
asInputStream() - Method in class com.adelean.inject.resources.core.Resource
Returns resource wrapper ResourceAsInputStream that opens resource as InputStream.
asLines() - Method in class com.adelean.inject.resources.core.Resource
Returns resource wrapper ResourceAsLines that opens resource as stream of text lines with default charset.
asLines() - Method in class com.adelean.inject.resources.core.ResourceAsReader
Returns resource wrapper ResourceAsLines that opens resource as stream of text lines with defined ResourceAsReader.charset.
asLines(Charset) - Method in class com.adelean.inject.resources.core.Resource
Returns resource wrapper ResourceAsLines that opens resource as stream of text lines with specified charset.
asReader() - Method in class com.adelean.inject.resources.core.Resource
Returns resource wrapper ResourceAsReader that opens resource as Reader with default charset.
asReader(Charset) - Method in class com.adelean.inject.resources.core.Resource
Returns resource wrapper ResourceAsReader that opens resource as Reader with specified charset.
asText() - Method in class com.adelean.inject.resources.core.Resource
Returns resource wrapper ResourceAsText that reads resources as String with default charset.
asText(Charset) - Method in class com.adelean.inject.resources.core.Resource
Returns resource wrapper ResourceAsText that reads resources as String with specified charset.

B

blankToNull(String) - Static method in class com.adelean.inject.resources.core.helpers.StringUtils
 
buildPath(String, String...) - Static method in class com.adelean.inject.resources.core.Resource
 
bytes() - Method in class com.adelean.inject.resources.core.Resource
Returns content of resource file as bytes array.
bytes() - Method in class com.adelean.inject.resources.core.ResourceAsByteArray
 

C

close() - Method in class com.adelean.inject.resources.core.ResourceAsInputStream
 
close() - Method in class com.adelean.inject.resources.core.ResourceAsLines
 
close() - Method in class com.adelean.inject.resources.core.ResourceAsReader
 
com.adelean.inject.resources.core - package com.adelean.inject.resources.core
 
com.adelean.inject.resources.core.function - package com.adelean.inject.resources.core.function
 
com.adelean.inject.resources.core.helpers - package com.adelean.inject.resources.core.helpers
 

F

forEachLine(Consumer<String>) - Method in class com.adelean.inject.resources.core.ResourceAsLines
Applies lineConsumer to each text line from resource.
forEachLineChecked(ThrowingConsumer<String>) - Method in class com.adelean.inject.resources.core.ResourceAsLines
Applies lineConsumer to each text line from resource.

G

get() - Method in interface com.adelean.inject.resources.core.Parsable
 
get() - Method in class com.adelean.inject.resources.core.ResourceAsByteArray
 
get() - Method in class com.adelean.inject.resources.core.ResourceAsInputStream
 
get() - Method in class com.adelean.inject.resources.core.ResourceAsReader
 
get() - Method in class com.adelean.inject.resources.core.ResourceAsText
 

I

InjectResources - Class in com.adelean.inject.resources.core
InjectResources is a small fluid Java DSL that simplifies loading and parsing of resource files.
inputStream() - Method in class com.adelean.inject.resources.core.ResourceAsInputStream
 
isBlank(String) - Static method in class com.adelean.inject.resources.core.helpers.StringUtils
 
isNotBlank(String) - Static method in class com.adelean.inject.resources.core.helpers.StringUtils
 

L

lines() - Method in class com.adelean.inject.resources.core.ResourceAsLines
Returns stream of text lines from wrapped resource.

O

onClassLoader(ClassLoader) - Method in class com.adelean.inject.resources.core.InjectResources
Returns builder for resource that is present on a classpath of classLoader argument.
onClassLoaderOf(Class<?>) - Method in class com.adelean.inject.resources.core.InjectResources
Returns builder for resource that is present on a classpath of ClassLoader of clazz argument.
onFirstLine(Consumer<String>) - Method in class com.adelean.inject.resources.core.ResourceAsLines
Defines hook that is executed when first line of resource was read.
onFirstLineChecked(ThrowingConsumer<String>) - Method in class com.adelean.inject.resources.core.ResourceAsLines
Defines hook that is executed when first line of resource was read.

P

Parsable<I> - Interface in com.adelean.inject.resources.core
Interface of resource builder that can parse content of resource file.
parse(Function<I, O>) - Method in interface com.adelean.inject.resources.core.Parsable
Parses content of resource using parsingFunction.
parseChecked(ThrowingFunction<I, O>) - Method in interface com.adelean.inject.resources.core.Parsable
Parses content of resource using parsingFunction that may throw exception.
parseLines(Function<String, T>) - Method in class com.adelean.inject.resources.core.ResourceAsLines
Applies parsingFunction to each text line from resource and returns the resulting stream.
parseLinesChecked(ThrowingFunction<String, T>) - Method in class com.adelean.inject.resources.core.ResourceAsLines
Applies parsingFunction to each text line from resource and returns the resulting stream.

R

readAsByteArray(String) - Method in class com.adelean.inject.resources.core.helpers.ResourceLoader
 
readAsText(String, Charset) - Method in class com.adelean.inject.resources.core.helpers.ResourceLoader
 
reader() - Method in class com.adelean.inject.resources.core.ResourceAsReader
 
resource() - Static method in class com.adelean.inject.resources.core.InjectResources
Entry point of InjectResourcess fluid Java DSL.
Resource - Class in com.adelean.inject.resources.core
Builder for resource that can be read in variety of ways.
Resource.ResourceOnClassloader - Class in com.adelean.inject.resources.core
Builder for resource that is present on classpath of supplied ClassLoader.
ResourceAsByteArray - Class in com.adelean.inject.resources.core
Wrapper for resource that may read content of that resource as bytes array.
ResourceAsInputStream - Class in com.adelean.inject.resources.core
Wrapper for resource that may open that resource as InputStream.
ResourceAsLines - Class in com.adelean.inject.resources.core
Wrapper for resource that may open that resource as stream of text lines.
ResourceAsReader - Class in com.adelean.inject.resources.core
Wrapper for resource that may open that resource as Reader with defined ResourceAsReader.charset.
ResourceAsText - Class in com.adelean.inject.resources.core
Wrapper for resource that may read that resource as String with defined ResourceAsText.charset.
resourceLoader - Variable in class com.adelean.inject.resources.core.Resource
 
ResourceLoader - Class in com.adelean.inject.resources.core.helpers
 
ResourceLoader(Class<?>) - Constructor for class com.adelean.inject.resources.core.helpers.ResourceLoader
 
ResourceLoader(ClassLoader) - Constructor for class com.adelean.inject.resources.core.helpers.ResourceLoader
 
resourcePath - Variable in class com.adelean.inject.resources.core.Resource
 
resourceReader(String, Charset) - Method in class com.adelean.inject.resources.core.helpers.ResourceLoader
 
resourceStream(String) - Method in class com.adelean.inject.resources.core.helpers.ResourceLoader
 

S

StringUtils - Class in com.adelean.inject.resources.core.helpers
 

T

text() - Method in class com.adelean.inject.resources.core.Resource
Returns content of resource file as String using with default charset.
text() - Method in class com.adelean.inject.resources.core.ResourceAsText
 
text(Charset) - Method in class com.adelean.inject.resources.core.Resource
Returns content of resource file as String using with specified charset.
then(Consumer<I>) - Method in interface com.adelean.inject.resources.core.Parsable
Processes content of resource using contentConsumer.
thenChecked(ThrowingConsumer<I>) - Method in interface com.adelean.inject.resources.core.Parsable
Processes content of resource using contentConsumer that may throw exception.
ThrowingConsumer<T> - Interface in com.adelean.inject.resources.core.function
This interface replaces Consumer in cases when execution of ThrowingConsumer.accept(Object) method may throw exception.
ThrowingFunction<T,​R> - Interface in com.adelean.inject.resources.core.function
This interface replaces Function in cases when execution of ThrowingFunction.apply(Object) method may throw exception.

U

ucfirst(String) - Static method in class com.adelean.inject.resources.core.helpers.StringUtils
 

W

withPath(String, String...) - Method in class com.adelean.inject.resources.core.InjectResources
Returns builder for resource with defined path on a classpath of the threads context ClassLoader.
withPath(String, String...) - Method in class com.adelean.inject.resources.core.Resource.ResourceOnClassloader
Returns builder for resource with defined path on a classpath of classloader of this builder.
A B C F G I L O P R S T U W 
All Classes All Packages