|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.poscoict.glueframework.message.layout.GlueMessageUtil
public abstract class GlueMessageUtil
Message »ý¼º, ÆÄ½Ì ¹× Message °¡°øÀ» À§ÇØ »ç¿ëµÇ´Â Utility Class
Field Summary | |
---|---|
static String |
EMPTY_STRING
|
static int |
FORMAT_YYYY
Date TypeÀ» ³â(yyyy) FormatÀ¸·Î ÁöÁ¤ |
static int |
FORMAT_YYYYMM
Date TypeÀ» ³â¿ù(yyyyMM) FormatÀ¸·Î ÁöÁ¤ |
static int |
FORMAT_YYYYMMDD
Date TypeÀ» ³â¿ùÀÏ(yyyyMMdd) FormatÀ¸·Î ÁöÁ¤ |
static int |
FORMAT_YYYYMMDDHH
Date TypeÀ» ³â¿ùÀϽÃ(yyyyMMddHH) FormatÀ¸·Î ÁöÁ¤ |
static int |
FORMAT_YYYYMMDDHHMM
Date TypeÀ» ³â¿ùÀϽúÐ(yyyyMMddHHmm) FormatÀ¸·Î ÁöÁ¤ |
static int |
FORMAT_YYYYMMDDHHMMSS
|
Constructor Summary | |
---|---|
GlueMessageUtil()
|
Method Summary | |
---|---|
static String |
convertDateToString(Timestamp date,
int defindedSize)
Date°ªÀ» StringÀ¸·Î º¯È¯ |
static Date |
convertStringToDate(String datestr)
String°ªÀ» Date·Î º¯È¯ |
static String |
getByteMsgString(GlueMessageAttributeDefinition attrDef,
GlueMessage message,
int index)
String°ªÀ» Message StringÀ¸·Î »ý¼º |
static String |
getByteMsgString(GlueMessageAttributeDefinition attrDef,
GlueMessage message,
int index,
Charset charset)
String°ªÀ» Message StringÀ¸·Î »ý¼º |
static int |
getIntFromString(String str)
String°ªÀ» Integer·Î º¯È¯ÇÏ¿© ¹ÝȯÇÑ´Ù. |
static String |
getMsgDate(GlueMessageAttributeDefinition attrDef,
GlueMessage message,
int index)
Date°ªÀ» Message StringÀ¸·Î »ý¼º |
static String |
getMsgNumber(GlueMessageAttributeDefinition attrDef,
GlueMessage message,
int index)
Number°ªÀ» Message StringÀ¸·Î »ý¼º |
static String |
getMsgString(GlueMessageAttributeDefinition attrDef,
GlueMessage message,
int index)
String°ªÀ» Message StringÀ¸·Î »ý¼º |
static String |
getStringFromNumber(BigDecimal number,
int definedSize,
int precision)
Number¸¦ StringÀ¸·Î º¯È¯ |
static String |
getToString(String str,
String character,
int length)
ÇØ´ç °ªÀ¸·Î ±æÀÌ ¸¸Å String¿¡ Ãß°¡ |
static String |
rightTrim(String content)
String ÇüÅÂÀÇ °ªÀ» ¹Þ¾Æ¼ RightTrim |
static String |
substringByte(byte[] strByte,
int startIndex,
int endIndex)
String ÇüÅÂÀÇ °ªÀ» ¹Þ¾Æ¼ byte ´ÜÀ§ÀÇ substringÀ» ¼öÇàÇÑ´Ù. |
static String |
substringByte(String str,
int startIndex,
int endIndex)
String ÇüÅÂÀÇ °ªÀ» ¹Þ¾Æ¼ byte ´ÜÀ§ÀÇ substringÀ» ¼öÇàÇÑ´Ù. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String EMPTY_STRING
public static final int FORMAT_YYYYMMDDHHMMSS
public static final int FORMAT_YYYYMMDDHHMM
public static final int FORMAT_YYYYMMDDHH
public static final int FORMAT_YYYYMMDD
public static final int FORMAT_YYYYMM
public static final int FORMAT_YYYY
Constructor Detail |
---|
public GlueMessageUtil()
Method Detail |
---|
public static int getIntFromString(String str)
str
- ¼ýÀÚ¹®ÀÚ¿
public static String rightTrim(String content)
content
- : Right TrimÇÒ ´ë»ó String
public static String substringByte(byte[] strByte, int startIndex, int endIndex)
strByte
- : substring ÇÒ ´ë»ó StringÀÇ ByteLengthstartIndex
- : substringÀ» ½ÃÀÛÇÒ À§Ä¡ (byte´ÜÀ§)endIndex
- : substringÀÇ ³¡ À§Ä¡ (byte´ÜÀ§)
public static String substringByte(String str, int startIndex, int endIndex)
str
- : substring ÇÒ ´ë»ó StringÀÇ ByteLengthstartIndex
- : substringÀ» ½ÃÀÛÇÒ À§Ä¡ (byte´ÜÀ§)endIndex
- : substringÀÇ ³¡ À§Ä¡ (byte´ÜÀ§)
public static String getStringFromNumber(BigDecimal number, int definedSize, int precision)
number
- BigDecimaldefinedSize
- intprecision
- int
public static Date convertStringToDate(String datestr) throws GlueException
datestr
-
GlueException
public static String getToString(String str, String character, int length)
str
- Stringcharacter
- Stringlength
- int
public static String getMsgString(GlueMessageAttributeDefinition attrDef, GlueMessage message, int index)
attrDef
- Ç׸ñ Definitionmessage
- Message°´Ã¼index
- ±×·ìÇ׸ñÀÏ°æ¿ìÀÇ index
public static String getByteMsgString(GlueMessageAttributeDefinition attrDef, GlueMessage message, int index)
attrDef
- Objectmessage
- GlueMessage
public static String getByteMsgString(GlueMessageAttributeDefinition attrDef, GlueMessage message, int index, Charset charset)
attrDef
- Objectmessage
- GlueMessageindex
- charset
-
public static String getMsgNumber(GlueMessageAttributeDefinition attrDef, GlueMessage message, int index)
attrDef
- Objectmessage
- GlueMessage
public static String getMsgDate(GlueMessageAttributeDefinition attrDef, GlueMessage message, int index)
attrDef
- Objectmessage
- GlueMessage
public static String convertDateToString(Timestamp date, int defindedSize)
date
- defindedSize
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |