Package org.eclipse.jetty.start
Class TextFile
java.lang.Object
org.eclipse.jetty.start.TextFile
- Direct Known Subclasses:
StartIni
Simple common abstraction for Text files, that consist of a series of lines.
Ignoring lines that are empty, deemed to be comments, or are duplicates of prior lines.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddUniqueLine(String line) getFile()getLineMatches(Pattern pattern) getLines()voidinit()iterator()voidstream()toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
TextFile
- Throws:
FileNotFoundExceptionIOException
-
-
Method Details
-
addUniqueLine
-
getFile
-
getLineMatches
-
getLines
-
getAllLines
-
init
public void init() -
stream
-
iterator
-
listIterator
-
process
-
toString
-