Class ResourceAsReader
- java.lang.Object
-
- com.adelean.inject.resources.core.ResourceAsReader
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceAsLinesasLines()Returns resource wrapperResourceAsLinesthat opens resource as stream of text lines with definedcharset.voidclose()java.io.BufferedReaderget()java.io.BufferedReaderreader()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.adelean.inject.resources.core.Parsable
parse, parseChecked, then, thenChecked
-
-
-
-
Method Detail
-
reader
public java.io.BufferedReader reader()
- Returns:
Readerfrom resource.
-
get
public java.io.BufferedReader get()
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Throws:
java.io.IOException
-
asLines
public ResourceAsLines asLines()
Returns resource wrapperResourceAsLinesthat opens resource as stream of text lines with definedcharset.- Returns:
- wrapper that opens resource as stream of text lines
-
-