|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--rath.msnm.msg.MimeMessage
MIME ¸Þ½ÃÁöµéÀ» °ü¸®Çϴ Ŭ·¡½ºÀÌ´Ù.
Field Summary | |
static int |
KIND_FILE_TRANSFER
|
static int |
KIND_MESSAGE
|
static int |
KIND_PROFILE
|
static int |
KIND_TYPING_USER
|
static int |
KIND_UNKNOWN
|
static String |
STR_FILE_TRANSFER
|
static String |
STR_MESSAGE
|
static String |
STR_PROFILE
|
static String |
STR_TYPING_USER
|
Constructor Summary | |
MimeMessage()
|
|
MimeMessage(String message)
ÁÖ¾îÁø ¸Þ½ÃÁö¸¦ °¡Áö´Â MIME ¸Þ½ÃÁö ÀνºÅϽº¸¦ »ý¼ºÇÑ´Ù. |
Method Summary | |
protected boolean |
addProperty(String line)
ÁÖ¾îÁø lineÀ» ÆÄ½ÌÇÏ¿© property¸¦ Çϳª Ãß°¡ÇÑ´Ù. |
protected StringBuffer |
createMimeHeader(String header)
ƯÁ¤ Content-TypeÀ» °¡Áö´Â Mime header·Î mime message¸¦ »ý¼ºÇØÁØ´Ù. |
protected StringBuffer |
fillMimeProperties(StringBuffer buf)
ÇöÀç ¼³Á¤µÈ ¸ðµç Properties¸¦ buf¿¡ Ãß°¡Çϰí, ¸¶Áö¸·¿¡ \r\n¸¦ Çѹø ´õ ºÙ¿©ÁÖ°Ô µÈ´Ù. |
byte[] |
getBytes()
¼³Á¤µÈ Á¾·ù(Kind)¿¡ µû¶ó ÀûÀýÇÏ°Ô byteº¯È¯ÇØÁØ´Ù. |
String |
getEffectCode()
|
Color |
getFontColor()
|
String |
getFontName()
|
byte[] |
getInstantMessageBytes()
Mime formatÀ» °¡Áö´Â UTF-8 base¿¡ URL encodedµÈ byte array·Î º¯ÇüÇØ ÁØ´Ù. |
int |
getKind()
ÀÌ MimeMessageÀÇ typeÀ» ¹ÝÈ¯ÇØÁØ´Ù. |
String |
getMessage()
KIND_MESSAGE Á¾·ùÀÏ ¶§ µµÂøÇÑ ÀνºÅÏÆ® ¸Þ½ÃÁö ³»¿ëÀ» ¾ò¾î¿À´Âµ¥ »ç¿ëµÈ´Ù. |
Properties |
getProperties()
ÇöÀç ¼³Á¤µÇ¾îÀÖ´Â ÇÁ·ÎÆÛƼµéÀ» ´ã°í ÀÖ´Â Properties °´Ã¼¸¦ °¡Á®¿Â´Ù. |
String |
getProperty(String key)
ƯÁ¤ Mime header °ªÀ» °¡Á®¿Â´Ù. |
byte[] |
getTypingMessageBytes()
|
boolean |
hasProperty(String key)
ÁÖ¾îÁø key°¡ ÇöÀç mime properties¿¡ Á¸ÀçÇÏ´ÂÁö¿¡ ´ëÇÑ ¿©ºÎ¸¦ ¾ò¾î¿Â´Ù. |
void |
parse(String raw)
UTF-8·Î ±¸¼ºµÈ raw ÇüÅÂÀÇ MIME ¸Þ½ÃÁö¸¦ ¹Þ¾Æ MIME Çü½Ä¿¡ ¸ÂÃç ÆÄ½Ì/ºÐ¼®ÇÏ¿© µ¥ÀÌÅ͸¦ ä¿î´Ù. |
void |
setEffectCode(String ef)
|
void |
setFontColor(Color c)
|
void |
setFontName(String fn)
|
void |
setKind(int kind)
|
void |
setMessage(String msg)
Àü¼ÛÇϰíÀÚ ÇÏ´Â ¸Þ½ÃÁö¸¦ ¼³Á¤ÇÑ´Ù. |
void |
setProperty(String key,
String value)
ÇÁ·ÎÆÛƼ¸¦ ¼³Á¤ÇÑ´Ù. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int KIND_PROFILE
public static final int KIND_TYPING_USER
public static final int KIND_MESSAGE
public static final int KIND_FILE_TRANSFER
public static final int KIND_UNKNOWN
public static final String STR_PROFILE
public static final String STR_TYPING_USER
public static final String STR_MESSAGE
public static final String STR_FILE_TRANSFER
Constructor Detail |
public MimeMessage()
public MimeMessage(String message)
Method Detail |
public int getKind()
public void setKind(int kind)
public String getFontName()
public void setFontName(String fn)
public Color getFontColor()
public void setFontColor(Color c)
public void setMessage(String msg)
public String getMessage()
protected boolean addProperty(String line)
public void setProperty(String key, String value)
key
- ÇÁ·ÎÆÛƼ Ű.value
- ÇÁ·ÎÆÛƼ °ª.public Properties getProperties()
public String getProperty(String key)
public boolean hasProperty(String key)
public void parse(String raw) throws Exception
raw
- StringÇüÅÂÀÇ MIME Àüü ¸Þ½ÃÁö.
Exception
public String getEffectCode()
public void setEffectCode(String ef)
public byte[] getInstantMessageBytes() throws UnsupportedEncodingException
UnsupportedEncodingException
public byte[] getTypingMessageBytes() throws UnsupportedEncodingException
UnsupportedEncodingException
protected StringBuffer createMimeHeader(String header)
protected StringBuffer fillMimeProperties(StringBuffer buf)
public byte[] getBytes() throws UnsupportedEncodingException
UnsupportedEncodingException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |