public class ByteFileLines extends FileLines
PeekIterator.ElementaryPeekIterator<T>, PeekIterator.SimplePeekIterator<T>| Modifier and Type | Field and Description |
|---|---|
java.io.InputStream |
in
The stream to read the lines from
|
announceChars, br, maxCharsclosed, EMPTY, initialized, next| Constructor and Description |
|---|
ByteFileLines(java.io.BufferedInputStream i)
Constructs FileLines from a BufferedReader (main constructor 2)
|
ByteFileLines(java.io.File f)
Constructs FileLines from a file
|
ByteFileLines(java.io.File f,
java.lang.String announceMsg)
Constructs FileLines from a file, shows progress bar (main constructor 1)
|
ByteFileLines(java.io.InputStream i)
Constructs FileLines from a Reader
|
ByteFileLines(java.lang.String f)
Constructs FileLines from a filename
|
ByteFileLines(java.lang.String f,
java.lang.String announceMsg)
Constructs FileLines from a filename, shows progress bar
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the reader
|
java.lang.String |
internalNext()
Returns next line.
|
static void |
main(java.lang.String[] args) |
finalize, find, findIgnoreCase, firstCharAfterSpace, iterator, numAllFileLines, numFileLines, readBetween, readBetween, readTo, readTo, readTo, readTo, readToBoundary, readToSpace, remove, scrollTo, scrollTo, scrollTo, toStringasList, asList, asSet, asSet, asSet, emptyIterator, hasNext, internalSilentNext, list, list, next, nextOrNull, numElements, numElements, peek, toString, toStringpublic ByteFileLines(java.lang.String f)
throws java.io.IOException
java.io.IOExceptionpublic ByteFileLines(java.io.File f)
throws java.io.IOException
java.io.IOExceptionpublic ByteFileLines(java.lang.String f,
java.lang.String announceMsg)
throws java.io.IOException
java.io.IOExceptionpublic ByteFileLines(java.io.File f,
java.lang.String announceMsg)
throws java.io.IOException
java.io.IOExceptionpublic ByteFileLines(java.io.InputStream i)
public ByteFileLines(java.io.BufferedInputStream i)
public java.lang.String internalNext()
FileLinesinternalNext in class FileLinespublic void close()
FileLinespublic static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception