org.kahina.core.data.text
Class KahinaText
java.lang.Object
org.kahina.core.data.KahinaObject
org.kahina.core.data.text.KahinaText
- All Implemented Interfaces:
- Serializable
public class KahinaText
- extends KahinaObject
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
lines
public List<String> lines
KahinaText
public KahinaText()
KahinaText
public KahinaText(List<String> lines)
KahinaText
public KahinaText(String absolutePathName)
getLines
public List<String> getLines()
addLine
public int addLine(String line)
- appends a new line to the end of this text
- Parameters:
line - - the new line to be added to the text
- Returns:
- the line ID of the new line
getLine
public String getLine(int lineID)
loadFromFile
public static KahinaText loadFromFile(String absolutePathName)
getLineContent
public String getLineContent(int lineNumber)
getCompleteContent
public String getCompleteContent()
getCompleteContentWithLineOffsets
public KahinaTextWithMarking getCompleteContentWithLineOffsets(int lineNumber)