|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javatools.datatypes.PeekIterator<java.lang.String> javatools.filehandlers.FileLines javatools.filehandlers.ByteFileLines
public class ByteFileLines
This class is part of the Java Tools (see http://mpii.de/yago-naga/javatools). It is licensed under the Creative Commons Attribution License (see http://creativecommons.org/licenses/by/3.0) by the YAGO-NAGA team (see http://mpii.de/yago-naga). Does the same as FileLines (see there) but reads bytes (see SimpleInputStreamReader).
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javatools.datatypes.PeekIterator |
---|
PeekIterator.ElementaryPeekIterator<T>, PeekIterator.SimplePeekIterator<T> |
Field Summary | |
---|---|
java.io.InputStream |
in
The stream to read the lines from |
Fields inherited from class javatools.filehandlers.FileLines |
---|
maxChars |
Fields inherited from class javatools.datatypes.PeekIterator |
---|
closed, initialized, next |
Constructor Summary | |
---|---|
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 |
Method Summary | |
---|---|
void |
close()
Closes the reader |
java.lang.String |
internalNext()
Returns next line. |
static void |
main(java.lang.String[] args)
|
Methods inherited from class javatools.filehandlers.FileLines |
---|
finalize, find, find, findIgnoreCase, firstCharAfterSpace, iterator, numAllFileLines, numFileLines, readBetween, readBetween, readTo, readTo, readTo, readTo, readToBoundary, readToSpace, remove, scrollTo, scrollTo, scrollTo, toString |
Methods inherited from class javatools.datatypes.PeekIterator |
---|
asList, asList, asSet, asSet, asSet, emptyIterator, hasNext, list, list, next, nextOrNull, numElements, numElements, peek, toString, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Iterator |
---|
hasNext, next |
Field Detail |
---|
public java.io.InputStream in
Constructor Detail |
---|
public ByteFileLines(java.lang.String f) throws java.io.IOException
java.io.IOException
public ByteFileLines(java.io.File f) throws java.io.IOException
java.io.IOException
public ByteFileLines(java.lang.String f, java.lang.String announceMsg) throws java.io.IOException
java.io.IOException
public ByteFileLines(java.io.File f, java.lang.String announceMsg) throws java.io.IOException
java.io.IOException
public ByteFileLines(java.io.InputStream i)
public ByteFileLines(java.io.BufferedInputStream i)
Method Detail |
---|
public java.lang.String internalNext()
FileLines
internalNext
in class FileLines
public void close()
FileLines
close
in interface java.io.Closeable
close
in class FileLines
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |