kr.co.hit.live.log.format
Class PatternFormatter

java.lang.Object
  extended by kr.co.hit.live.log.format.PatternFormatter
Direct Known Subclasses:
ConstantFormatter, EnvironmentValueFormatter, MessageBodyFormatter, ServiceIdFormatter, ServiceRoleFormatter, SystemPropertyFormatter

public class PatternFormatter
extends Object

로그로 출력될 포멧 각 구성요소를 나타내는 클래스이다.

Since:
4.0
Author:
김형도

Constructor Summary
PatternFormatter()
           
 
Method Summary
 void format(StringBuilder sbuf, Object obj)
          주어진 Object를 사용하여 포멧된 내용을 sbuf에 담는다.
 void format(StringBuilder sbuf, Object obj1, Object obj2)
          주어진 Object들을 사용항 포멧된 내용을 sbuf에 담는다.
 String formatMessage(Object obj1)
          실제 포매팅 작업을 수행한다.
 String formatMessage(Object obj1, Object obj2)
          실제 포매팅 작업을 수행한다.
 PatternFormatter next()
          연결된 다음 객체를 반환한다.
 void setNext(PatternFormatter next)
          자신의 다음 객체를 설정한다.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PatternFormatter

public PatternFormatter()
Method Detail

next

public PatternFormatter next()
연결된 다음 객체를 반환한다.

Returns:

setNext

public void setNext(PatternFormatter next)
자신의 다음 객체를 설정한다.

Parameters:
next -

format

public void format(StringBuilder sbuf,
                   Object obj)
주어진 Object를 사용하여 포멧된 내용을 sbuf에 담는다. 하위 클래스에서 구현한다.

Parameters:
sbuf -
obj -

format

public void format(StringBuilder sbuf,
                   Object obj1,
                   Object obj2)
주어진 Object들을 사용항 포멧된 내용을 sbuf에 담는다. 하위 클래스에서 구현한다.

Parameters:
sbuf -
obj1 -
obj2 -

formatMessage

public String formatMessage(Object obj1,
                            Object obj2)
실제 포매팅 작업을 수행한다.

Parameters:
obj1 -
obj2 -
Returns:

formatMessage

public String formatMessage(Object obj1)
실제 포매팅 작업을 수행한다.

Parameters:
obj1 -
Returns:


Copyright © 2014. All Rights Reserved.