📄 cmessage.html
字号:
<A NAME="MESSAGE_ENCODING_UNICODE"><!-- --></A><H3>
MESSAGE_ENCODING_UNICODE</H3>
<PRE>
public static final int <B>MESSAGE_ENCODING_UNICODE</B></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../constant-values.html#org.jsmsengine.CMessage.MESSAGE_ENCODING_UNICODE">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="TYPE_INCOMING"><!-- --></A><H3>
TYPE_INCOMING</H3>
<PRE>
public static final int <B>TYPE_INCOMING</B></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../constant-values.html#org.jsmsengine.CMessage.TYPE_INCOMING">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="TYPE_OUTGOING"><!-- --></A><H3>
TYPE_OUTGOING</H3>
<PRE>
public static final int <B>TYPE_OUTGOING</B></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../constant-values.html#org.jsmsengine.CMessage.TYPE_OUTGOING">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="TYPE_STATUS_REPORT"><!-- --></A><H3>
TYPE_STATUS_REPORT</H3>
<PRE>
public static final int <B>TYPE_STATUS_REPORT</B></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../constant-values.html#org.jsmsengine.CMessage.TYPE_STATUS_REPORT">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="type"><!-- --></A><H3>
type</H3>
<PRE>
private int <B>type</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="id"><!-- --></A><H3>
id</H3>
<PRE>
protected java.lang.String <B>id</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="memIndex"><!-- --></A><H3>
memIndex</H3>
<PRE>
protected int <B>memIndex</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="date"><!-- --></A><H3>
date</H3>
<PRE>
protected java.util.Date <B>date</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="originator"><!-- --></A><H3>
originator</H3>
<PRE>
protected java.lang.String <B>originator</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="recipient"><!-- --></A><H3>
recipient</H3>
<PRE>
protected java.lang.String <B>recipient</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="text"><!-- --></A><H3>
text</H3>
<PRE>
protected java.lang.String <B>text</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="messageEncoding"><!-- --></A><H3>
messageEncoding</H3>
<PRE>
protected int <B>messageEncoding</B></PRE>
<DL>
<DL>
</DL>
</DL>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="CMessage(int, java.util.Date, java.lang.String, java.lang.String, java.lang.String, int)"><!-- --></A><H3>
CMessage</H3>
<PRE>
public <B>CMessage</B>(int type,
java.util.Date date,
java.lang.String originator,
java.lang.String recipient,
java.lang.String text,
int memIndex)</PRE>
<DL>
<DD>Default constructor of the class.
<P>
<DL>
<DT><B>Parameters:</B><DD><CODE>type</CODE> - the type (incoming/outgoing) of the message.<DD><CODE>date</CODE> - the creation date of the message.<DD><CODE>originator</CODE> - the originator's number. Applicable only for incoming messages.<DD><CODE>recipient</CODE> - the recipient's number. Applicable only for outgoing messages.<DD><CODE>text</CODE> - the actual text of the message.<DD><CODE>memIndex</CODE> - the index of the memory location in the GSM device where this message is stored. Applicable only for incoming messages. <br><br>Notes:<br> <ul> <li>Phone numbers are represented in their international format (e.g. +306974... for Greece).</li> <li>"Recipient" may be an entry from the phonebook.</li> </ul></DL>
</DL>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="getType()"><!-- --></A><H3>
getType</H3>
<PRE>
public int <B>getType</B>()</PRE>
<DL>
<DD>Returns the type of the message. Type is either incoming or outgoing, as denoted by the class' static values INCOMING and OUTGOING.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the type of the message.</DL>
</DD>
</DL>
<HR>
<A NAME="getId()"><!-- --></A><H3>
getId</H3>
<PRE>
public java.lang.String <B>getId</B>()</PRE>
<DL>
<DD>Returns the id of the message.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the id of the message.</DL>
</DD>
</DL>
<HR>
<A NAME="getMemIndex()"><!-- --></A><H3>
getMemIndex</H3>
<PRE>
public int <B>getMemIndex</B>()</PRE>
<DL>
<DD>Returns the memory index of the GSM device, where the message is stored. Applicable only for incoming messages.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the memory index of the message.</DL>
</DD>
</DL>
<HR>
<A NAME="getDate()"><!-- --></A><H3>
getDate</H3>
<PRE>
public java.util.Date <B>getDate</B>()</PRE>
<DL>
<DD>Returns the date of the message. For incoming messages, this is the sent date. For outgoing messages, this is the creation date.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the date of the message.</DL>
</DD>
</DL>
<HR>
<A NAME="getOriginator()"><!-- --></A><H3>
getOriginator</H3>
<PRE>
public java.lang.String <B>getOriginator</B>()</PRE>
<DL>
<DD>Returns the Originator of the message.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the originator of the message.</DL>
</DD>
</DL>
<HR>
<A NAME="getRecipient()"><!-- --></A><H3>
getRecipient</H3>
<PRE>
public java.lang.String <B>getRecipient</B>()</PRE>
<DL>
<DD>Returns the Recipient of the message.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the recipient of the message.</DL>
</DD>
</DL>
<HR>
<A NAME="getText()"><!-- --></A><H3>
getText</H3>
<PRE>
public java.lang.String <B>getText</B>()</PRE>
<DL>
<DD>Returns the actual text of the message (ASCII).
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the text of the message.</DL>
</DD>
</DL>
<HR>
<A NAME="getHexText()"><!-- --></A><H3>
getHexText</H3>
<PRE>
public java.lang.String <B>getHexText</B>()</PRE>
<DL>
<DD>Returns the text of the message, in hexadecimal format.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the text of the message (HEX format).</DL>
</DD>
</DL>
<HR>
<A NAME="getMessageEncoding()"><!-- --></A><H3>
getMessageEncoding</H3>
<PRE>
public int <B>getMessageEncoding</B>()</PRE>
<DL>
<DD>Returns the encoding method of the message. Returns of the constants MESSAGE_ENCODING_7BIT, MESSAGE_ENCODING_8BIT, MESSAGE_ENCODING_UNICODE. This is meaningful only when working in PDU mode.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the message encoding.</DL>
</DD>
</DL>
<HR>
<A NAME="setId(java.lang.String)"><!-- --></A><H3>
setId</H3>
<PRE>
public void <B>setId</B>(java.lang.String id)</PRE>
<DL>
<DD>Set the id of the message.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>id</CODE> - the id of the message.</DL>
</DD>
</DL>
<HR>
<A NAME="setText(java.lang.String)"><!-- --></A><H3>
setText</H3>
<PRE>
public void <B>setText</B>(java.lang.String text)</PRE>
<DL>
<DD>Set the text of the message.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>text</CODE> - the text of the message.</DL>
</DD>
</DL>
<HR>
<A NAME="setDate(java.util.Date)"><!-- --></A><H3>
setDate</H3>
<PRE>
public void <B>setDate</B>(java.util.Date date)</PRE>
<DL>
<DD>Set the date of the message.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>date</CODE> - the date of the message.</DL>
</DD>
</DL>
<HR>
<A NAME="setMessageEncoding(int)"><!-- --></A><H3>
setMessageEncoding</H3>
<PRE>
public void <B>setMessageEncoding</B>(int messageEncoding)</PRE>
<DL>
<DD>Set the message encoding. Should be one of the constants MESSAGE_ENCODING_7BIT, MESSAGE_ENCODING_8BIT, MESSAGE_ENCODING_UNICODE. This is meaningful only when working in PDU mode - default is 7bit.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>messageEncoding</CODE> - one of the message encoding contants.</DL>
</DD>
</DL>
<HR>
<A NAME="toString()"><!-- --></A><H3>
toString</H3>
<PRE>
public java.lang.String <B>toString</B>()</PRE>
<DL>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../org/jsmsengine/package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
<strong>jSMSEngine API v2.0.4</strong><br><strong>Web:</strong><a href=http://www.jsmsengine.org>http://www.jsmsengine.org</a></strong></EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../org/jsmsengine/CIncomingMessage.html" title="class in org.jsmsengine"><B>PREV CLASS</B></A>
<A HREF="../../org/jsmsengine/COutgoingMessage.html" title="class in org.jsmsengine"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../index.html?org/jsmsengine/CMessage.html" target="_top"><B>FRAMES</B></A>
<A HREF="CMessage.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -