public final class FormattingInfo
extends java.lang.Object
| Constructor | Description |
|---|---|
FormattingInfo(boolean leftAlign,
int minLength,
int maxLength) |
Creates new instance.
|
| Modifier and Type | Method | Description |
|---|---|---|
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.Copyright 2000-2007 Apache Software Foundation.