Class BoundedBufferedReader
java.lang.Object
java.io.Reader
java.io.BufferedReader
ml.karmaconfigs.api.common.utils.reader.BoundedBufferedReader
- All Implemented Interfaces:
Closeable,Serializable,AutoCloseable,Readable
Karma bounded buffered reader for
files with long text lines
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionBoundedBufferedReader(Reader reader)Initialize the bounded buffered readerBoundedBufferedReader(Reader reader, int maxLines, int maxLineLen)Initialize the bounded buffered reader -
Method Summary
Methods inherited from class java.io.BufferedReader
close, lines, mark, markSupported, read, read, ready, reset, skipMethods inherited from class java.io.Reader
nullReader, read, read, transferTo
-
Constructor Details
-
BoundedBufferedReader
Initialize the bounded buffered reader- Parameters:
reader- the readermaxLines- the maximum amount of linesmaxLineLen- the maximum length of the lines
-
BoundedBufferedReader
Initialize the bounded buffered reader- Parameters:
reader- the reader
-
-
Method Details
-
readLine
Read the line- Overrides:
readLinein classBufferedReader- Returns:
- the next line
- Throws:
IOException- if something goes wrong
-