Package net.sourceforge.plantuml.command
Class BlocLines
- java.lang.Object
-
- net.sourceforge.plantuml.command.BlocLines
-
- All Implemented Interfaces:
java.lang.Iterable<java.lang.CharSequence>
public class BlocLines extends java.lang.Object implements java.lang.Iterable<java.lang.CharSequence>
-
-
Constructor Summary
Constructors Constructor Description BlocLines()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BlocLinesadd2(java.lang.CharSequence s)BlocLinescleanList2(MultilinesStrategy strategy)BlocLineseventuallyMoveBracket()java.lang.CharSequenceget499(int i)java.lang.CharSequencegetFirst499()java.lang.CharSequencegetLast499()chargetLastChar()java.util.List<java.lang.CharSequence>getLines()static BlocLinesgetWithNewlines(java.lang.CharSequence s)java.util.Iterator<java.lang.CharSequence>iterator()static BlocLinesload(java.io.File f)BlocLinesremoveEmptyColumns()BlocLinesremoveStartingAndEnding2(java.lang.String data)static BlocLinessingle(java.lang.CharSequence single)intsize()BlocLinessubExtract(int margeStart, int margeEnd)BlocLinessubList(int start, int end)DisplaytoDisplay()BlocLinestoSingleLineWithHiddenNewLine()java.lang.StringtoString()BlocLinestrim(boolean removeEmptyLines)BlocLinestrimSmart(int referenceLine)
-
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
load
public static BlocLines load(java.io.File f) throws java.io.IOException
- Throws:
java.io.IOException
-
toDisplay
public Display toDisplay()
-
single
public static BlocLines single(java.lang.CharSequence single)
-
getWithNewlines
public static BlocLines getWithNewlines(java.lang.CharSequence s)
-
add2
public BlocLines add2(java.lang.CharSequence s)
-
getLines
public java.util.List<java.lang.CharSequence> getLines()
-
size
public int size()
-
get499
public java.lang.CharSequence get499(int i)
-
getFirst499
public java.lang.CharSequence getFirst499()
-
getLast499
public java.lang.CharSequence getLast499()
-
cleanList2
public BlocLines cleanList2(MultilinesStrategy strategy)
-
trim
public BlocLines trim(boolean removeEmptyLines)
-
removeEmptyColumns
public BlocLines removeEmptyColumns()
-
getLastChar
public char getLastChar()
-
removeStartingAndEnding2
public BlocLines removeStartingAndEnding2(java.lang.String data)
-
toSingleLineWithHiddenNewLine
public BlocLines toSingleLineWithHiddenNewLine()
-
trimSmart
public BlocLines trimSmart(int referenceLine)
-
subExtract
public BlocLines subExtract(int margeStart, int margeEnd)
-
subList
public BlocLines subList(int start, int end)
-
iterator
public java.util.Iterator<java.lang.CharSequence> iterator()
- Specified by:
iteratorin interfacejava.lang.Iterable<java.lang.CharSequence>
-
eventuallyMoveBracket
public BlocLines eventuallyMoveBracket()
-
-