|
|||||||||||
| FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | PROPERTY | CONSTR | FUNCTION | DETAIL: PROPERTY | CONSTR | FUNCTION | ||||||||||
| Function Summary | ||
|---|---|---|
fun Reader |
buffered( [bufferSize: Int]): BufferedReader
|
|
fun Reader |
copyTo(out: Writer, [bufferSize: Int]): Long
Copies this reader to the given output writer, returning the number of bytes copied. |
|
fun Reader |
forEachLine(block: (String) -> Any): Unit
Iterates through each line of this reader then closing the Reader when its completed |
|
fun BufferedReader |
lineIterator(): Iterator<String>
Returns an iterator over each line. Note the caller must close the underlying BufferedReaderwhen the iteration is finished; as the user may not complete the iteration loop (e.g. using a method like find() or any() on the iterator may terminate the iteration early. We suggest you try the method useLines() instead which closes the stream when the processing is complete. |
|
fun Reader |
readText(): String
Reads this reader completely as a String |
|
|
useLines(block: (Iterator<String>) -> T): T
|
|
| Function Detail |
|---|
fun Reader.copyTo(out: Writer, [bufferSize: Int]): Long
Copies this reader to the given output writer, returning the number of bytes copied.
Note it is the callers responsibility to close both of these resources
fun Reader.forEachLine(block: (String) -> Any): Unit
Iterates through each line of this reader then closing the Reader when its completed
fun BufferedReader.lineIterator(): Iterator<String>
Returns an iterator over each line.
Note the caller must close the underlying BufferedReader
when the iteration is finished; as the user may not complete the iteration loop (e.g. using a method like find() or any() on the iterator
may terminate the iteration early.
We suggest you try the method useLines() instead which closes the stream when the processing is complete.
fun Reader.readText(): String
Reads this reader completely as a String
Note it is the callers responsibility to close this resource
|
||||||||||
| FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | PROPERTY | CONSTR | FUNCTION | DETAIL: PROPERTY | CONSTR | FUNCTION | |||||||||