public class FitsLineAppender extends Object
Constructor and Description |
---|
FitsLineAppender()
create a new FitsLineAppender that will have space allocated for one
line.
|
Modifier and Type | Method and Description |
---|---|
void |
append(char character)
append a character to the fits line.
|
void |
append(FitsSubString stringValue)
Append a sub-string to this line.
|
void |
append(String string)
append a string to the fits line, but limit the append to the line
length.
|
void |
append(String key,
int start,
int end) |
void |
appendReplacing(String key,
char toReplace,
char with)
append a string to the buffer, replacing all occurrences of a character
with an other.
|
void |
appendSpacesTo(int count)
append a number of spaces to the line, limited to the line length! This
will only be done if the line is already started, so attention when a
line is still empty this method will have no effect on empty lines.
|
void |
completeLine()
fill the rest of current line with spaces and start a new fits line.
|
int |
length() |
int |
spaceLeftInLine() |
String |
toString() |
public FitsLineAppender()
public void append(char character)
character
- the character to append to the line.public void append(FitsSubString stringValue)
stringValue
- the sub string to append.public void append(String string)
string
- the string to appendpublic void appendReplacing(String key, char toReplace, char with)
key
- the string to writetoReplace
- the character to replacewith
- the character to replace the toReplace character with.public void appendSpacesTo(int count)
count
- the number of spaces to write.public void completeLine()
public int length()
public int spaceLeftInLine()
public void append(String key, int start, int end)
Copyright © 1996–2016 nom-tam-fits. All rights reserved.