?? datagram.html
字號:
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_java.io.DataInput"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TD><B>Methods inherited from interface java.io.<A HREF="../../../java/io/DataInput.html">DataInput</A></B></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../java/io/DataInput.html#readBoolean()">readBoolean</A>, <A HREF="../../../java/io/DataInput.html#readByte()">readByte</A>, <A HREF="../../../java/io/DataInput.html#readChar()">readChar</A>, <A HREF="../../../java/io/DataInput.html#readFully(byte[])">readFully</A>, <A HREF="../../../java/io/DataInput.html#readFully(byte[], int, int)">readFully</A>, <A HREF="../../../java/io/DataInput.html#readInt()">readInt</A>, <A HREF="../../../java/io/DataInput.html#readLong()">readLong</A>, <A HREF="../../../java/io/DataInput.html#readShort()">readShort</A>, <A HREF="../../../java/io/DataInput.html#readUnsignedByte()">readUnsignedByte</A>, <A HREF="../../../java/io/DataInput.html#readUnsignedShort()">readUnsignedShort</A>, <A HREF="../../../java/io/DataInput.html#readUTF()">readUTF</A>, <A HREF="../../../java/io/DataInput.html#skipBytes(int)">skipBytes</A></CODE></TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_java.io.DataOutput"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TD><B>Methods inherited from interface java.io.<A HREF="../../../java/io/DataOutput.html">DataOutput</A></B></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../java/io/DataOutput.html#write(byte[])">write</A>, <A HREF="../../../java/io/DataOutput.html#write(byte[], int, int)">write</A>, <A HREF="../../../java/io/DataOutput.html#write(int)">write</A>, <A HREF="../../../java/io/DataOutput.html#writeBoolean(boolean)">writeBoolean</A>, <A HREF="../../../java/io/DataOutput.html#writeByte(int)">writeByte</A>, <A HREF="../../../java/io/DataOutput.html#writeChar(int)">writeChar</A>, <A HREF="../../../java/io/DataOutput.html#writeChars(java.lang.String)">writeChars</A>, <A HREF="../../../java/io/DataOutput.html#writeInt(int)">writeInt</A>, <A HREF="../../../java/io/DataOutput.html#writeLong(long)">writeLong</A>, <A HREF="../../../java/io/DataOutput.html#writeShort(int)">writeShort</A>, <A HREF="../../../java/io/DataOutput.html#writeUTF(java.lang.String)">writeUTF</A></CODE></TD>
</TR>
</TABLE>
<P>
<!-- ============ FIELD DETAIL =========== -->
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Method Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="getAddress()"><!-- --></A><H3>
getAddress</H3>
<PRE>
public <A HREF="../../../java/lang/String.html">String</A> <B>getAddress</B>()</PRE>
<DL>
<DD>Get the address in the datagram.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the address in string form, or null if no address was set<DT><B>See Also: </B><DD><A HREF="../../../javax/microedition/io/Datagram.html#setAddress(java.lang.String)"><CODE>setAddress(java.lang.String)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="getData()"><!-- --></A><H3>
getData</H3>
<PRE>
public byte[] <B>getData</B>()</PRE>
<DL>
<DD>Get the buffer.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the data buffer<DT><B>See Also: </B><DD><A HREF="../../../javax/microedition/io/Datagram.html#setData(byte[], int, int)"><CODE>setData(byte[], int, int)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="getLength()"><!-- --></A><H3>
getLength</H3>
<PRE>
public int <B>getLength</B>()</PRE>
<DL>
<DD>Get the length.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the length of the data<DT><B>See Also: </B><DD><A HREF="../../../javax/microedition/io/Datagram.html#setLength(int)"><CODE>setLength(int)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="getOffset()"><!-- --></A><H3>
getOffset</H3>
<PRE>
public int <B>getOffset</B>()</PRE>
<DL>
<DD>Get the offset.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the offset into the data buffer</DL>
</DD>
</DL>
<HR>
<A NAME="setAddress(java.lang.String)"><!-- --></A><H3>
setAddress</H3>
<PRE>
public void <B>setAddress</B>(<A HREF="../../../java/lang/String.html">String</A> addr) throws <A HREF="../../../java/io/IOException.html">IOException</A></PRE>
<DL>
<DD>Set datagram address. <p> The actual addressing scheme is implementation-dependent. Please read the general comments on datagram addressing in <I>DatagramConnection.java</I>. <p> Note that if the address of a datagram is not specified, then it defaults to that of the connection.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>addr</CODE> - the new target address as a URL<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/lang/IllegalArgumentException.html">IllegalArgumentException</A></CODE> - if the address is not valid<DD><CODE><A HREF="../../../java/io/IOException.html">IOException</A></CODE> - if a some kind of I/O error occurs<DT><B>See Also: </B><DD><A HREF="../../../javax/microedition/io/Datagram.html#getAddress()"><CODE>getAddress()</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="setAddress(javax.microedition.io.Datagram)"><!-- --></A><H3>
setAddress</H3>
<PRE>
public void <B>setAddress</B>(<A HREF="../../../javax/microedition/io/Datagram.html">Datagram</A> reference)</PRE>
<DL>
<DD>Set datagram address, copying the address from another datagram.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>reference</CODE> - the datagram who's address will be copied as the new target address for this datagram.<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/lang/IllegalArgumentException.html">IllegalArgumentException</A></CODE> - if the address is not valid<DT><B>See Also: </B><DD><A HREF="../../../javax/microedition/io/Datagram.html#getAddress()"><CODE>getAddress()</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="setLength(int)"><!-- --></A><H3>
setLength</H3>
<PRE>
public void <B>setLength</B>(int len)</PRE>
<DL>
<DD>Set the length.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>len</CODE> - the new length of the data<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/lang/IllegalArgumentException.html">IllegalArgumentException</A></CODE> - if the length is negative or larger than the buffer<DT><B>See Also: </B><DD><A HREF="../../../javax/microedition/io/Datagram.html#getLength()"><CODE>getLength()</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="setData(byte[], int, int)"><!-- --></A><H3>
setData</H3>
<PRE>
public void <B>setData</B>(byte[] buffer, int offset, int len)</PRE>
<DL>
<DD>Set the buffer, offset and length.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>buffer</CODE> - the data buffer<DD><CODE>offset</CODE> - the offset into the data buffer<DD><CODE>len</CODE> - the length of the data in the buffer<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/lang/IllegalArgumentException.html">IllegalArgumentException</A></CODE> - if the length or offset fall outside the buffer<DT><B>See Also: </B><DD><A HREF="../../../javax/microedition/io/Datagram.html#getData()"><CODE>getData()</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="reset()"><!-- --></A><H3>
reset</H3>
<PRE>
public void <B>reset</B>()</PRE>
<DL>
<DD>Zero the read/write pointer as well as the offset and length parameters.<DD><DL>
</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ========== START OF NAVBAR ========== -->
<A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
<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="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="class-use/Datagram.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </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>MID Profile</strong></EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../javax/microedition/io/ContentConnection.html"><B>PREV CLASS</B></A>
<A HREF="../../../javax/microedition/io/DatagramConnection.html"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A>
<A HREF="Datagram.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: INNER | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->
<HR>
<font size="-1"><a href="mailto:midp-feedback@risc.sps.mot.com">Submit a comment or suggestion</a> Version 2.0 of MID Profile Specification<br>Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries. Copyright (c) 1993-2002 Sun Microsystems, Inc. 901 San Antonio Road,Palo Alto, California, 94303, U.S.A. All Rights Reserved.</font>
</BODY>
</HTML>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -