public final class FormattingInfo
extends java.lang.Object
构造器和说明 |
---|
FormattingInfo(boolean leftAlign,
int minLength,
int maxLength)
Creates new instance.
|
限定符和类型 | 方法和说明 |
---|---|
void |
format(int fieldStart,
java.lang.StringBuffer buffer)
Adjust the content of the buffer based on the specified lengths and alignment.
|
static FormattingInfo |
getDefault()
Gets default instance.
|
int |
getMaxLength()
Get maximum length.
|
int |
getMinLength()
Get minimum length.
|
boolean |
isLeftAligned()
Determine if left aligned.
|
public FormattingInfo(boolean leftAlign, int minLength, int maxLength)
leftAlign
- left align if true.minLength
- minimum length.maxLength
- maximum length.public static FormattingInfo getDefault()
public boolean isLeftAligned()
public int getMinLength()
public int getMaxLength()
public void format(int fieldStart, java.lang.StringBuffer buffer)
fieldStart
- start of field in buffer.buffer
- buffer to be modified.