FileFetchRequestHandler 구현
This commit is contained in:
@@ -287,7 +287,7 @@ public class TelegramManager implements Lifecycle
|
||||
}
|
||||
else
|
||||
{
|
||||
int delim = new Integer(length_token).intValue();
|
||||
int delim = Integer.parseInt(length_token);
|
||||
result[i]=telegram.substring(beginIndex, beginIndex+=delim);
|
||||
logger.debug("> 수신 전문필드 파싱... Index: ["+ i +"], Type: ["+ type_token +"], Length: ["+ length_token +"], Name: ["+ telegramVO.getTelegramItem(i+1).getFieldName() +"], Value: ["+ result[i] +"]");
|
||||
}
|
||||
@@ -333,7 +333,7 @@ public class TelegramManager implements Lifecycle
|
||||
}
|
||||
else
|
||||
{
|
||||
int delim = new Integer(length_token).intValue();
|
||||
int delim = Integer.parseInt(length_token);
|
||||
result[i]=telegram.substring(beginIndex, beginIndex+=delim);
|
||||
logger.debug("> 수신 전문필드 파싱... Index: ["+ i +"], Length: ["+ length_token +"], Name: ["+ telegramVO.getTelegramItem(i+1).getFieldName() +"], Value: ["+ result[i] +"]");
|
||||
}
|
||||
@@ -464,7 +464,7 @@ public class TelegramManager implements Lifecycle
|
||||
while(i < lengths.length)
|
||||
{
|
||||
if (!lengths[i].trim().toUpperCase().equals("XX"))
|
||||
totalLength += new Integer(lengths[i]).intValue();
|
||||
totalLength += Integer.parseInt(lengths[i]);
|
||||
i++;
|
||||
}
|
||||
return totalLength;
|
||||
@@ -542,7 +542,7 @@ public class TelegramManager implements Lifecycle
|
||||
else
|
||||
{
|
||||
// 정의된 필드의 길이
|
||||
int fieldLen = new Integer(fieldLength).intValue();
|
||||
int fieldLen = Integer.parseInt(fieldLength);
|
||||
|
||||
// 정의된 필드의 길이보다 큰 경우 예외 처리
|
||||
if (fieldContent.length() > fieldLen)
|
||||
|
||||
Reference in New Issue
Block a user