public abstract class GlueMessageUtil extends Object
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
GlueMessageUtil() |
Modifier and Type | Method and Description |
---|---|
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À» ¼öÇàÇÑ´Ù.
|
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
public static int getIntFromString(String str)
str
- ¼ýÀÚ¹®ÀÚ¿public static String rightTrim(String content)
content
- : Right TrimÇÒ ´ë»ó Stringpublic 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
- intpublic static Date convertStringToDate(String datestr) throws GlueException
datestr
- GlueException
public static String getToString(String str, String character, int length)
str
- Stringcharacter
- Stringlength
- intpublic static String getMsgString(GlueMessageAttributeDefinition attrDef, GlueMessage message, int index)
attrDef
- Ç׸ñ Definitionmessage
- Message°´Ã¼index
- ±×·ìÇ׸ñÀÏ°æ¿ìÀÇ indexpublic static String getByteMsgString(GlueMessageAttributeDefinition attrDef, GlueMessage message, int index)
attrDef
- Objectmessage
- GlueMessagepublic 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
- GlueMessagepublic static String getMsgDate(GlueMessageAttributeDefinition attrDef, GlueMessage message, int index)
attrDef
- Objectmessage
- GlueMessageCopyright © 2013–2019 POSCO ICT. All rights reserved.