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.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addUniqueLine
(String line) getFile()
getLineMatches
(Pattern pattern) getLines()
void
init()
iterator()
void
stream()
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
file
-
lines
-
allLines
-
-
Constructor Details
-
TextFile
- Throws:
IOException
-
-
Method Details