|
|
|
|
@ -8,24 +8,12 @@ import cokr.xit.applib.Hangul;
|
|
|
|
|
public class MessageUtil {
|
|
|
|
|
|
|
|
|
|
public MessageUtil(String type){
|
|
|
|
|
|
|
|
|
|
//if(type.equals("A")) {
|
|
|
|
|
//this.nuri2_oracle = "\r\n";
|
|
|
|
|
//this.nuri2_oracle_byte = 2;
|
|
|
|
|
//this.nuri2_maria = "\\\\r\\\\n";
|
|
|
|
|
//this.nuri2_maria_byte = 4;
|
|
|
|
|
//} else if(type.equals("B")) {
|
|
|
|
|
//this.nuri2_oracle = "\n";
|
|
|
|
|
//this.nuri2_oracle_byte = 1;
|
|
|
|
|
//this.nuri2_maria = "\\\\n";
|
|
|
|
|
//this.nuri2_maria_byte = 2;
|
|
|
|
|
//} else
|
|
|
|
|
if(type.equals("C")) { //단순 문자열일 경우 줄바꿈(SMS,LMS)
|
|
|
|
|
if(type.equals("plain")) { //단순 문자열일 경우 줄바꿈(SMS,LMS)
|
|
|
|
|
this.nuri2_oracle = "\n";
|
|
|
|
|
this.nuri2_oracle_byte = 1;
|
|
|
|
|
this.nuri2_maria = "\n";
|
|
|
|
|
this.nuri2_maria_byte = 1;
|
|
|
|
|
} else if(type.equals("D")) { //제이슨형식일 경우 줄바꿈(알림톡,RCS)
|
|
|
|
|
} else if(type.equals("json")) { //제이슨형식일 경우 줄바꿈(알림톡,RCS)
|
|
|
|
|
this.nuri2_oracle = "\\\\n";
|
|
|
|
|
this.nuri2_oracle_byte = 2;
|
|
|
|
|
this.nuri2_maria = "\\\\n";
|
|
|
|
|
|