LargeAsciiTable
should be
used instead.@Deprecated
public class AsciiTable
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
CENTER
Deprecated.
|
static int |
LEFT
Deprecated.
|
static int |
RIGHT
Deprecated.
|
Constructor and Description |
---|
AsciiTable(char separ)
Deprecated.
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addHeaderLine(java.lang.String headerline)
Deprecated.
Add a header line.
|
void |
addLine(java.lang.String line)
Deprecated.
Add a line to the table
|
java.lang.String[] |
displayAligned(int[] pos)
Deprecated.
Deprecated because of memory issues. Instead, you should use
LargeAsciiTable.streamAligned(cds.util.LargeAsciiTable.LineProcessor, int[]) . |
java.lang.String[] |
displayAligned(int[] pos,
char newsep)
Deprecated.
Deprecated because of memory issues. Instead, you should use
LargeAsciiTable.streamAligned(cds.util.LargeAsciiTable.LineProcessor, int[], char) . |
java.lang.String[] |
displayAligned(int[] pos,
char newsep,
java.lang.Thread thread)
Deprecated.
Deprecated because of memory issues. Instead, you should use
LargeAsciiTable.streamAligned(cds.util.LargeAsciiTable.LineProcessor, int[], char, Thread) . |
java.lang.String[] |
displayRaw()
Deprecated.
Get all the lines without alignment, as they were entered
|
java.lang.String[] |
displayRaw(char newsep)
Deprecated.
Get all the lines without alignment, as they were entered, with separator control
|
void |
endHeaderLine()
Deprecated.
Specifies that the header lines are finished.
|
void |
endHeaderLine(java.lang.String postfix)
Deprecated.
Specifies that the header lines are finished.
|
java.lang.String |
toString()
Deprecated.
Display the whole table, with left alignment
|
public static final int LEFT
public static final int CENTER
public static final int RIGHT
public AsciiTable(char separ)
separ
- character defining the column separator in the input linespublic void addHeaderLine(java.lang.String headerline)
headerline
- header stringpublic void endHeaderLine(java.lang.String postfix)
postfix
- String to append after the header lines (i.e. "\n")endHeaderLine()
public void endHeaderLine()
endHeaderLine(String)
public void addLine(java.lang.String line)
line
- string containing the line with all the columns separated by the column separator.
The line should not end up with a newline char. If it is the case, alignment errors can be experienced
depending on the alignment type of the last column.public java.lang.String[] displayRaw()
public java.lang.String[] displayRaw(char newsep)
newsep
- separator to use, replacing the original one@Deprecated public java.lang.String[] displayAligned(int[] pos) throws java.lang.InterruptedException
LargeAsciiTable.streamAligned(cds.util.LargeAsciiTable.LineProcessor, int[])
.IMPORTANT:
The array must have as many columns as the table has. Each column can
contain either LEFT
, CENTER
or
RIGHT
. If the array contains ONE item, it will be
used for every column.
pos
- Array of flags, indicating how each column should be
justified.java.lang.InterruptedException
- If the current thread has been interrupted.
This interruption is useful when this
alignment operation becomes time and memory
consuming.@Deprecated public java.lang.String[] displayAligned(int[] pos, char newsep) throws java.lang.InterruptedException
LargeAsciiTable.streamAligned(cds.util.LargeAsciiTable.LineProcessor, int[], char)
.IMPORTANT:
The array must have as many columns as the table has. Each column can
contain either LEFT
, CENTER
or
RIGHT
. If the array contains ONE item, it will be
used for every column.
pos
- Array of flags, indicating how each column should be
justified.newsep
- Separator to use, replacing the original one.java.lang.InterruptedException
- If the current thread has been interrupted.
This interruption is useful when this
alignment operation becomes time and memory
consuming.@Deprecated public java.lang.String[] displayAligned(int[] pos, char newsep, java.lang.Thread thread) throws java.lang.InterruptedException
LargeAsciiTable.streamAligned(cds.util.LargeAsciiTable.LineProcessor, int[], char, Thread)
.IMPORTANT:
The array must have as many columns as the table has. Each column can
contain either LEFT
, CENTER
or
RIGHT
. If the array contains ONE item, it will be
used for every column.
pos
- Array of flags, indicating how each column should be
justified.newsep
- Separator to use, replacing the original one.thread
- Thread to watch. If it is interrupted, this task should
be as well.java.lang.InterruptedException
- If the current thread has been interrupted.
This interruption is useful when this
alignment operation becomes time and memory
consuming.public java.lang.String toString()
toString
in class java.lang.Object