123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620 |
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <!--NewPage-->
- <HTML>
- <HEAD>
- <!-- Generated by javadoc (build 1.4.2) on Mon Dec 14 20:07:23 GMT 2009 -->
- <TITLE>
- DccFileTransfer (PircBot 1.5.0 - Java IRC API Bot Framework)
- </TITLE>
- <META NAME="keywords" CONTENT="org.jibble.pircbot.DccFileTransfer class">
- <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../pircbot-style.css" TITLE="Style">
- <SCRIPT type="text/javascript">
- function windowTitle()
- {
- parent.document.title="DccFileTransfer (PircBot 1.5.0 - Java IRC API Bot Framework)";
- }
- </SCRIPT>
- </HEAD>
- <BODY BGCOLOR="white" onload="windowTitle();">
- <!-- ========= START OF TOP NAVBAR ======= -->
- <A NAME="navbar_top"><!-- --></A>
- <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
- <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
- <TR>
- <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
- <A NAME="navbar_top_firstrow"><!-- --></A>
- <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
- <TR ALIGN="center" VALIGN="top">
- <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/DccFileTransfer.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>
- <b>PircBot Java IRC Bot</b></EM>
- </TD>
- </TR>
- <TR>
- <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
- <A HREF="../../../org/jibble/pircbot/DccChat.html" title="class in org.jibble.pircbot"><B>PREV CLASS</B></A>
- <A HREF="../../../org/jibble/pircbot/DccManager.html" title="class in org.jibble.pircbot"><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="DccFileTransfer.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> | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
- <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
- DETAIL: <A HREF="#field_detail">FIELD</A> | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD>
- </TR>
- </TABLE>
- <A NAME="skip-navbar_top"></A>
- <!-- ========= END OF TOP NAVBAR ========= -->
- <HR>
- <!-- ======== START OF CLASS DATA ======== -->
- <H2>
- <FONT SIZE="-1">
- org.jibble.pircbot</FONT>
- <BR>
- Class DccFileTransfer</H2>
- <PRE>
- <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">java.lang.Object</A>
- <IMG SRC="../../../resources/inherit.gif" ALT="extended by"><B>org.jibble.pircbot.DccFileTransfer</B>
- </PRE>
- <HR>
- <DL>
- <DT>public class <B>DccFileTransfer</B><DT>extends <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></DL>
- <P>
- This class is used to administer a DCC file transfer.
- <P>
- <P>
- <DL>
- <DT><B>Since:</B></DT>
- <DD>1.2.0</DD>
- <DT><B>Version:</B></DT>
- <DD>1.5.0 (Build time: Mon Dec 14 20:07:17 2009)</DD>
- <DT><B>Author:</B></DT>
- <DD>Paul James Mutton,
- <a href="http://www.jibble.org/">http://www.jibble.org/</a></DD>
- </DL>
- <HR>
- <P>
- <!-- ======== NESTED CLASS SUMMARY ======== -->
- <!-- =========== FIELD SUMMARY =========== -->
- <A NAME="field_summary"><!-- --></A>
- <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
- <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
- <TD COLSPAN=2><FONT SIZE="+2">
- <B>Field Summary</B></FONT></TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static int</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../org/jibble/pircbot/DccFileTransfer.html#BUFFER_SIZE">BUFFER_SIZE</A></B></CODE>
- <BR>
- The default buffer size to use when sending and receiving files.</TD>
- </TR>
- </TABLE>
-
- <!-- ======== CONSTRUCTOR SUMMARY ======== -->
- <!-- ========== METHOD SUMMARY =========== -->
- <A NAME="method_summary"><!-- --></A>
- <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
- <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
- <TD COLSPAN=2><FONT SIZE="+2">
- <B>Method Summary</B></FONT></TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> void</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../org/jibble/pircbot/DccFileTransfer.html#close()">close</A></B>()</CODE>
- <BR>
- Stops the DCC file transfer by closing the connection.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/File.html" title="class or interface in java.io">File</A></CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../org/jibble/pircbot/DccFileTransfer.html#getFile()">getFile</A></B>()</CODE>
- <BR>
- Returns the suggested file to be used for this transfer.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../org/jibble/pircbot/DccFileTransfer.html#getHostname()">getHostname</A></B>()</CODE>
- <BR>
- Returns the hostname of the file sender.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../org/jibble/pircbot/DccFileTransfer.html#getLogin()">getLogin</A></B>()</CODE>
- <BR>
- Returns the login of the file sender.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../org/jibble/pircbot/DccFileTransfer.html#getNick()">getNick</A></B>()</CODE>
- <BR>
- Returns the nick of the other user taking part in this file transfer.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> long</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../org/jibble/pircbot/DccFileTransfer.html#getNumericalAddress()">getNumericalAddress</A></B>()</CODE>
- <BR>
- Returns the address of the sender as a long.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> long</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../org/jibble/pircbot/DccFileTransfer.html#getPacketDelay()">getPacketDelay</A></B>()</CODE>
- <BR>
- returns the delay time between each packet that is send or received.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> int</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../org/jibble/pircbot/DccFileTransfer.html#getPort()">getPort</A></B>()</CODE>
- <BR>
- Returns the port number to be used when making the connection.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> long</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../org/jibble/pircbot/DccFileTransfer.html#getProgress()">getProgress</A></B>()</CODE>
- <BR>
- Returns the progress (in bytes) of the current file transfer.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> double</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../org/jibble/pircbot/DccFileTransfer.html#getProgressPercentage()">getProgressPercentage</A></B>()</CODE>
- <BR>
- Returns the progress of the file transfer as a percentage.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> long</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../org/jibble/pircbot/DccFileTransfer.html#getSize()">getSize</A></B>()</CODE>
- <BR>
- Returns the size (in bytes) of the file being transfered.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> long</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../org/jibble/pircbot/DccFileTransfer.html#getTransferRate()">getTransferRate</A></B>()</CODE>
- <BR>
- Returns the rate of data transfer in bytes per second.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> boolean</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../org/jibble/pircbot/DccFileTransfer.html#isIncoming()">isIncoming</A></B>()</CODE>
- <BR>
- Returns true if the file transfer is incoming (somebody is sending
- the file to us).</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> boolean</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../org/jibble/pircbot/DccFileTransfer.html#isOutgoing()">isOutgoing</A></B>()</CODE>
- <BR>
- Returns true if the file transfer is outgoing (we are sending the
- file to someone).</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> void</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../org/jibble/pircbot/DccFileTransfer.html#receive(java.io.File, boolean)">receive</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/File.html" title="class or interface in java.io">File</A> file,
- boolean resume)</CODE>
- <BR>
- Receives a DccFileTransfer and writes it to the specified file.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> void</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../org/jibble/pircbot/DccFileTransfer.html#setPacketDelay(long)">setPacketDelay</A></B>(long millis)</CODE>
- <BR>
- Sets the delay time between sending or receiving each packet.</TD>
- </TR>
- </TABLE>
- <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
- <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
- <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
- <TD><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
- </TR>
- </TABLE>
-
- <P>
- <!-- ============ FIELD DETAIL =========== -->
- <A NAME="field_detail"><!-- --></A>
- <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
- <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
- <TD COLSPAN=1><FONT SIZE="+2">
- <B>Field Detail</B></FONT></TD>
- </TR>
- </TABLE>
- <A NAME="BUFFER_SIZE"><!-- --></A><H3>
- BUFFER_SIZE</H3>
- <PRE>
- public static final int <B>BUFFER_SIZE</B></PRE>
- <DL>
- <DD>The default buffer size to use when sending and receiving files.
- <P>
- <DL>
- <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.jibble.pircbot.DccFileTransfer.BUFFER_SIZE">Constant Field Values</A></DL>
- </DL>
- <!-- ========= CONSTRUCTOR DETAIL ======== -->
- <!-- ============ METHOD DETAIL ========== -->
- <A NAME="method_detail"><!-- --></A>
- <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
- <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
- <TD COLSPAN=1><FONT SIZE="+2">
- <B>Method Detail</B></FONT></TD>
- </TR>
- </TABLE>
- <A NAME="receive(java.io.File, boolean)"><!-- --></A><H3>
- receive</H3>
- <PRE>
- public void <B>receive</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/File.html" title="class or interface in java.io">File</A> file,
- boolean resume)</PRE>
- <DL>
- <DD>Receives a DccFileTransfer and writes it to the specified file.
- Resuming allows a partial download to be continue from the end of
- the current file contents.
- <P>
- <DD><DL>
- <DT><B>Parameters:</B><DD><CODE>file</CODE> - The file to write to.<DD><CODE>resume</CODE> - True if you wish to try and resume the download instead
- of overwriting an existing file.</DL>
- </DD>
- </DL>
- <HR>
- <A NAME="getNick()"><!-- --></A><H3>
- getNick</H3>
- <PRE>
- public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getNick</B>()</PRE>
- <DL>
- <DD>Returns the nick of the other user taking part in this file transfer.
- <P>
- <DD><DL>
- <DT><B>Returns:</B><DD>the nick of the other user.</DL>
- </DD>
- </DL>
- <HR>
- <A NAME="getLogin()"><!-- --></A><H3>
- getLogin</H3>
- <PRE>
- public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getLogin</B>()</PRE>
- <DL>
- <DD>Returns the login of the file sender.
- <P>
- <DD><DL>
- <DT><B>Returns:</B><DD>the login of the file sender. null if we are sending.</DL>
- </DD>
- </DL>
- <HR>
- <A NAME="getHostname()"><!-- --></A><H3>
- getHostname</H3>
- <PRE>
- public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getHostname</B>()</PRE>
- <DL>
- <DD>Returns the hostname of the file sender.
- <P>
- <DD><DL>
- <DT><B>Returns:</B><DD>the hostname of the file sender. null if we are sending.</DL>
- </DD>
- </DL>
- <HR>
- <A NAME="getFile()"><!-- --></A><H3>
- getFile</H3>
- <PRE>
- public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/File.html" title="class or interface in java.io">File</A> <B>getFile</B>()</PRE>
- <DL>
- <DD>Returns the suggested file to be used for this transfer.
- <P>
- <DD><DL>
- <DT><B>Returns:</B><DD>the suggested file to be used.</DL>
- </DD>
- </DL>
- <HR>
- <A NAME="getPort()"><!-- --></A><H3>
- getPort</H3>
- <PRE>
- public int <B>getPort</B>()</PRE>
- <DL>
- <DD>Returns the port number to be used when making the connection.
- <P>
- <DD><DL>
- <DT><B>Returns:</B><DD>the port number.</DL>
- </DD>
- </DL>
- <HR>
- <A NAME="isIncoming()"><!-- --></A><H3>
- isIncoming</H3>
- <PRE>
- public boolean <B>isIncoming</B>()</PRE>
- <DL>
- <DD>Returns true if the file transfer is incoming (somebody is sending
- the file to us).
- <P>
- <DD><DL>
- <DT><B>Returns:</B><DD>true if the file transfer is incoming.</DL>
- </DD>
- </DL>
- <HR>
- <A NAME="isOutgoing()"><!-- --></A><H3>
- isOutgoing</H3>
- <PRE>
- public boolean <B>isOutgoing</B>()</PRE>
- <DL>
- <DD>Returns true if the file transfer is outgoing (we are sending the
- file to someone).
- <P>
- <DD><DL>
- <DT><B>Returns:</B><DD>true if the file transfer is outgoing.</DL>
- </DD>
- </DL>
- <HR>
- <A NAME="setPacketDelay(long)"><!-- --></A><H3>
- setPacketDelay</H3>
- <PRE>
- public void <B>setPacketDelay</B>(long millis)</PRE>
- <DL>
- <DD>Sets the delay time between sending or receiving each packet.
- Default is 0.
- This is useful for throttling the speed of file transfers to maintain
- a good quality of service for other things on the machine or network.
- <P>
- <DD><DL>
- <DT><B>Parameters:</B><DD><CODE>millis</CODE> - The number of milliseconds to wait between packets.</DL>
- </DD>
- </DL>
- <HR>
- <A NAME="getPacketDelay()"><!-- --></A><H3>
- getPacketDelay</H3>
- <PRE>
- public long <B>getPacketDelay</B>()</PRE>
- <DL>
- <DD>returns the delay time between each packet that is send or received.
- <P>
- <DD><DL>
- <DT><B>Returns:</B><DD>the delay between each packet.</DL>
- </DD>
- </DL>
- <HR>
- <A NAME="getSize()"><!-- --></A><H3>
- getSize</H3>
- <PRE>
- public long <B>getSize</B>()</PRE>
- <DL>
- <DD>Returns the size (in bytes) of the file being transfered.
- <P>
- <DD><DL>
- <DT><B>Returns:</B><DD>the size of the file. Returns -1 if the sender did not
- specify this value.</DL>
- </DD>
- </DL>
- <HR>
- <A NAME="getProgress()"><!-- --></A><H3>
- getProgress</H3>
- <PRE>
- public long <B>getProgress</B>()</PRE>
- <DL>
- <DD>Returns the progress (in bytes) of the current file transfer.
- When resuming, this represents the total number of bytes in the
- file, which may be greater than the amount of bytes resumed in
- just this transfer.
- <P>
- <DD><DL>
- <DT><B>Returns:</B><DD>the progress of the transfer.</DL>
- </DD>
- </DL>
- <HR>
- <A NAME="getProgressPercentage()"><!-- --></A><H3>
- getProgressPercentage</H3>
- <PRE>
- public double <B>getProgressPercentage</B>()</PRE>
- <DL>
- <DD>Returns the progress of the file transfer as a percentage.
- Note that this should never be negative, but could become
- greater than 100% if you attempt to resume a larger file
- onto a partially downloaded file that was smaller.
- <P>
- <DD><DL>
- <DT><B>Returns:</B><DD>the progress of the transfer as a percentage.</DL>
- </DD>
- </DL>
- <HR>
- <A NAME="close()"><!-- --></A><H3>
- close</H3>
- <PRE>
- public void <B>close</B>()</PRE>
- <DL>
- <DD>Stops the DCC file transfer by closing the connection.
- <P>
- <DD><DL>
- </DL>
- </DD>
- </DL>
- <HR>
- <A NAME="getTransferRate()"><!-- --></A><H3>
- getTransferRate</H3>
- <PRE>
- public long <B>getTransferRate</B>()</PRE>
- <DL>
- <DD>Returns the rate of data transfer in bytes per second.
- This value is an estimate based on the number of bytes
- transfered since the connection was established.
- <P>
- <DD><DL>
- <DT><B>Returns:</B><DD>data transfer rate in bytes per second.</DL>
- </DD>
- </DL>
- <HR>
- <A NAME="getNumericalAddress()"><!-- --></A><H3>
- getNumericalAddress</H3>
- <PRE>
- public long <B>getNumericalAddress</B>()</PRE>
- <DL>
- <DD>Returns the address of the sender as a long.
- <P>
- <DD><DL>
- <DT><B>Returns:</B><DD>the address of the sender as a long.</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=3 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="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/DccFileTransfer.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>
- <b>PircBot Java IRC Bot</b></EM>
- </TD>
- </TR>
- <TR>
- <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
- <A HREF="../../../org/jibble/pircbot/DccChat.html" title="class in org.jibble.pircbot"><B>PREV CLASS</B></A>
- <A HREF="../../../org/jibble/pircbot/DccManager.html" title="class in org.jibble.pircbot"><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="DccFileTransfer.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> | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
- <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
- DETAIL: <A HREF="#field_detail">FIELD</A> | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD>
- </TR>
- </TABLE>
- <A NAME="skip-navbar_bottom"></A>
- <!-- ======== END OF BOTTOM NAVBAR ======= -->
- <HR>
- </BODY>
- </HTML>
|