|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.log4j.pattern.FormattingInfo
public final class FormattingInfo
Modifies the output of a pattern converter for a specified minimum and maximum width and alignment.
| Constructor Summary | |
|---|---|
FormattingInfo(boolean leftAlign,
boolean rightTruncate,
int minLength,
int maxLength)
Creates new instance. |
|
FormattingInfo(boolean leftAlign,
int minLength,
int maxLength)
Deprecated. since 1.2.17 |
|
| Method Summary | |
|---|---|
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. |
boolean |
isRightTruncated()
Determine if right truncated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FormattingInfo(boolean leftAlign,
int minLength,
int maxLength)
leftAlign - left align if true.minLength - minimum length.maxLength - maximum length.
public FormattingInfo(boolean leftAlign,
boolean rightTruncate,
int minLength,
int maxLength)
leftAlign - left align if true.rightTruncate - right truncate if true.minLength - minimum length.maxLength - maximum length.| Method Detail |
|---|
public static FormattingInfo getDefault()
public boolean isLeftAligned()
public boolean isRightTruncated()
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright © 2010 The Apache Software Foundation. Licensed under the Apache License, Version 2.0
Apache Extras Companion for Apache log4j, Apache log4j and Apache are trademarks of the Apache Software Foundation.